-
Notifications
You must be signed in to change notification settings - Fork 53
40 lines (37 loc) · 1.07 KB
/
release.yml
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
39
40
name: Create a release
on:
workflow_dispatch:
push:
tags:
- "*"
permissions:
contents: write
jobs:
create_a_release:
name: create a release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: ">=1.23"
cache: true
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
- run: echo "${HOME}/.humanlog/bin" >> $GITHUB_PATH
- run: curl https://humanlog.io/install_apictl.sh | bash
- run: ./script/create_version_artifacts.sh
env:
CHANNEL: "main"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_URL: "https://api.humanlog.io"
HMAC_KEY_ID: ${{ secrets.PROD_HMAC_KEY_ID }}
HMAC_PRIVATE_KEY: ${{ secrets.PROD_HMAC_PRIVATE_KEY }}