fix: use cachix for release workflow as well
This commit is contained in:
parent
b906e614ba
commit
f8fb729c03
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@ -15,18 +15,18 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- name: Use cachix
|
- name: Use Cachix
|
||||||
uses: cachix/cachix-action@v16
|
uses: cachix/cachix-action@v16
|
||||||
with:
|
with:
|
||||||
name: trevstack
|
name: trevstack
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
|
||||||
- name: Install npm packages
|
- name: Install NPM Packages
|
||||||
working-directory: ./client
|
working-directory: ./client
|
||||||
run: npm ci --legacy-peer-deps
|
run: npm ci --legacy-peer-deps
|
||||||
|
|
||||||
|
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@ -16,26 +16,20 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: nixbuild/nix-quick-install-action@v30
|
uses: cachix/install-nix-action@v31
|
||||||
|
|
||||||
- name: Restore and save Nix store + go modules
|
|
||||||
uses: nix-community/cache-nix-action@v6
|
|
||||||
with:
|
with:
|
||||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
|
||||||
gc-max-store-size-linux: 1G
|
- name: Use Cachix
|
||||||
purge: true
|
uses: cachix/cachix-action@v16
|
||||||
purge-prefixes: nix-${{ runner.os }}-
|
with:
|
||||||
purge-created: 0
|
name: trevstack
|
||||||
purge-primary-key: never
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
paths: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: nix develop --command ts-build
|
run: nix develop --command ts-build
|
||||||
|
|
||||||
- name: Create release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user