deploy: fix: must be nested
Some checks failed
/ deploy (push) Has been cancelled

This commit is contained in:
Jermeiah S 2025-06-20 14:19:42 -04:00
parent 8b992b53d8
commit 06c2916ada
No known key found for this signature in database

View file

@ -1,18 +1,17 @@
on: [push]
jobs:
check:
runs-on: nix
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- run: nix flake check .
# check:
# runs-on: nix
# steps:
# - uses: https://code.forgejo.org/actions/checkout@v3
# - run: nix flake check .
deploy:
runs-on: nix
needs: check
# needs: check
if: contains(github.event.head_commit.message, 'deploy:')
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- run: nix develop
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
@ -20,4 +19,4 @@ jobs:
chmod 600 ~/.ssh/id_rsa
env:
SSHKEY: ${{ secrets.SSHKEY }}
- run: deploy
- run: nix develop .#default -c deploy