From 42ec628b172ed7efcd90bfabe8bb6b81aaa52c2e Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 15 Feb 2026 23:22:35 +0100 Subject: [PATCH] workflows: Add deploy stage to CI pipeline --- .github/workflows/{test.yml => ci.yml} | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) rename .github/workflows/{test.yml => ci.yml} (60%) diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml similarity index 60% rename from .github/workflows/test.yml rename to .github/workflows/ci.yml index dbba8ab..c50046a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yml @@ -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