Skip to content

Commit

Permalink
build before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed May 19, 2024
1 parent f2eb459 commit 4703fb6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 4703fb6

Please sign in to comment.