-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.19 KB
/
generate-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
41
42
43
44
45
46
47
48
49
50
51
---
name: CLI-Release
on:
workflow_dispatch:
defaults:
run:
shell: bash
working-directory: app/cli
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch all tags
run: |
git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Setup GoReleaser
run: |
go install github.com/goreleaser/goreleaser@latest
goreleaser --version
- name: GoReleaser Check
run: |
goreleaser check
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --rm-dist
workdir: ./app/cli
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}