workflows: Add deploy stage to CI pipeline

This commit is contained in:
SebastianStork 2026-02-15 23:22:35 +01:00
parent f8daf6941f
commit 42ec628b17
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -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