forked from puma/puma-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 890 Bytes
/
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
name: release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.20.1
- run: go install github.com/mitchellh/[email protected]
- run: echo $(go env GOPATH)/bin >> $GITHUB_PATH
- name: get release version
id: get_version
run: echo ::set-output name=RELEASE_VERSION::${GITHUB_REF#refs/tags/v}
- uses: actions/checkout@v3
- run: make release
env:
RELEASE: ${{ steps.get_version.outputs.RELEASE_VERSION }}
- run: openssl dgst -sha256 pkg/*
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "pkg/*"
allowUpdates: true
omitBody: true
prerelease: true
removeArtifacts: true