mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 16:39:07 +01:00
workflows: Rename CI to Check & Deploy
This commit is contained in:
parent
f45a39b189
commit
a1a462fc8c
1 changed files with 1 additions and 1 deletions
25
.github/workflows/check-deploy.yml
vendored
Normal file
25
.github/workflows/check-deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: "Check & Deploy"
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
extra_nix_config: experimental-features = nix-command flakes pipe-operators
|
||||
- uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: sebastian-stork
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
- run: nix flake 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