Compare commits

...

4 commits

Author SHA1 Message Date
6f78be2e0f
workflows/ci: Fix experimental features
Some checks failed
CI / check (push) Has been cancelled
CI / deploy (push) Has been cancelled
2026-02-16 00:16:35 +01:00
eddb6bf0b8
comin: Pull from the deploy branch 2026-02-15 23:31:31 +01:00
e19c14daaf
workflows/ci: Enable pipes for the whole check job 2026-02-15 23:29:02 +01:00
42ec628b17
workflows: Add deploy stage to CI pipeline 2026-02-15 23:22:35 +01:00
3 changed files with 26 additions and 15 deletions

25
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: "CI"
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

View file

@ -1,15 +0,0 @@
name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v15
with:
name: sebastian-stork
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix flake --extra-experimental-features pipe-operators check

View file

@ -15,6 +15,7 @@
remotes = lib.singleton { remotes = lib.singleton {
name = "origin"; name = "origin";
url = "https://github.com/SebastianStork/nixos-config.git"; url = "https://github.com/SebastianStork/nixos-config.git";
branches.main.name = "deploy";
}; };
}; };
}; };