aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..d699248
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,21 @@
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v4
+ - name: Run the Magic Nix Cache
+ uses: DeterminateSystems/magic-nix-cache-action@v2
+ - name: Make and deploy Xesite
+ run: |
+ nix develop -c "go run ./cmd/fabricate-generation"
+ env:
+ TAILSCALE_CLIENT_ID: ${{ secrets.TAILSCALE_CLIENT_ID }}
+ TAILSCALE_CLIENT_SECRET: ${{ secrets.TAILSCALE_CLIENT_SECRET }}