Skip to content

Commit 4bbcd6b

Browse files
committed
ci: actually install nix in version job
1 parent 1125f26 commit 4bbcd6b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/cd-publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ jobs:
3737
git config user.name "github-actions[bot]"
3838
git config user.email "github-actions[bot]@users.noreply.github.com"
3939
40+
- name: "[INIT] Install Nix"
41+
uses: cachix/install-nix-action@v31
42+
with:
43+
nix_path: nixpkgs=channel:nixos-unstable
44+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: "[INIT] Setup Cachix"
47+
uses: cachix/cachix-action@v15
48+
with:
49+
name: amperser
50+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
51+
52+
4053
- name: "[VERSION] Bump & Commit"
4154
run: |
4255
nix develop --command uv version ${{ github.event.inputs.version }}
@@ -49,8 +62,7 @@ jobs:
4962
- name: "[GIT] Create tag"
5063
run: |
5164
git tag v${{ github.event.inputs.version }}
52-
git push origin HEAD
53-
git push origin v${{ github.event.inputs.version }}
65+
git push origin HEAD --tags
5466
5567
build:
5668
name: Build Artifacts

0 commit comments

Comments
 (0)