From 4703fb600f77ec95dfafb46d27dd289468522c8e Mon Sep 17 00:00:00 2001 From: Kayh Date: Sun, 19 May 2024 00:31:56 -0400 Subject: [PATCH] build before deploy --- .github/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64587b221..8f94c8c97 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,8 +28,7 @@ concurrency: jobs: deploy: - # Must be ubuntu-20.04, see https://github.com/actions/runner-images/issues/6709 - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: AdityaGarg8/remove-unwanted-software@v3 with: @@ -66,6 +65,14 @@ jobs: message: "chore: update terraform output" default_author: github_actions + - name: Build server + if: inputs.disable-deploy != true + run: nix build .?submodules=1#unavi-server + + - name: Build web + if: inputs.disable-deploy != true + run: nix build .?submodules=1#unavi-web + - name: Deploy if: inputs.disable-deploy != true run: nix run .?submodules=1#deploy