mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09: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:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
@ -13,3 +13,11 @@ jobs:
|
||||||
name: sebastian-stork
|
name: sebastian-stork
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
- run: nix flake --extra-experimental-features pipe-operators check
|
- 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