-
Notifications
You must be signed in to change notification settings - Fork 89
38 lines (38 loc) · 1.29 KB
/
release.yml
File metadata and controls
38 lines (38 loc) · 1.29 KB
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
on:
push:
paths-ignore:
- "docs/**"
tags:
- "v*"
name: Release
jobs:
deployable:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Init Hermit
uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # ratchet:cashapp/activate-hermit@v1
- name: Build Hermit
run: |
just build stable linux amd64
just build stable linux arm64
just build stable darwin amd64
just build stable darwin arm64
INSTALLER_VERSION=$(go run -ldflags "-X main.channel=stable" ./cmd/hermit gen-installer --dest=build/install.sh)
cp build/install.sh build/install-"${INSTALLER_VERSION}".sh
- name: Release versioned
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
with:
allowUpdates: true
artifacts: "build/*"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release stable
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
with:
tag: stable
name: Stable
allowUpdates: true
artifacts: "build/*"
token: ${{ secrets.GITHUB_TOKEN }}