-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 1 KB
/
latest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Latest release
on:
push:
branches:
- main
jobs:
release:
name: Latest release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://tek.cachix.org
extra-trusted-public-keys = tek.cachix.org-1:+sdc73WFq8aEKnrVv5j/kuhmnW2hQJuqdPJF5SnaCBk=
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v15
with:
name: tek
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: build static
run: nix build .#hix.static
- uses: softprops/action-gh-release@v2
name: Create release
with:
tag_name: latest
name: latest
prerelease: true
files: |
result/bin/hix