Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 97f0827

Browse files
committed
wip: fixing releases
1 parent 150c6f0 commit 97f0827

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,26 @@ jobs:
88
name: Release
99
runs-on: ubuntu-latest
1010
steps:
11+
12+
- name: Check out source
13+
uses: actions/checkout@v1
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v1
17+
with:
18+
go-version: 1.12
19+
id: go
20+
1121
- name: Get version from ref
12-
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
13-
id: get_version
14-
15-
- name: Go release
16-
run: ./scripts/release.sh ${{ steps.get_version.outputs.VERSION }}
22+
run: echo ::set-env name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
23+
24+
- name: Create release notes
25+
run: scripts/release-notes.sh ${{ env.VERSION }} > release-notes.md
1726

18-
# - name: Go release
19-
# uses: goreleaser/goreleaser-action@v1
20-
# with:
21-
# version: ${{ steps.get_version.outputs.VERSION }}
22-
# args: --skip-validate --release-notes="${TMPDIR}/release-notes.md"
23-
# env:
24-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Go release
28+
uses: goreleaser/goreleaser-action@v1
29+
with:
30+
version: latest
31+
args: --skip-validate --release-notes release-notes.md
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)