mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
workflows: Add deploy stage to CI pipeline
This commit is contained in:
parent
f8daf6941f
commit
42ec628b17
1 changed files with 11 additions and 3 deletions
|
|
@ -1,9 +1,9 @@
|
|||
name: "Test"
|
||||
name: "CI"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
tests:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
|
@ -13,3 +13,11 @@ jobs:
|
|||
name: sebastian-stork
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
- run: nix flake --extra-experimental-features pipe-operators check
|
||||
deploy:
|
||||
needs: check
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- run: git push origin HEAD:deploy --force
|
||||
Loading…
Add table
Add a link
Reference in a new issue