Skip to content

Commit afbb72c

Browse files
authored
Add a release workflow (#6)
* Add sketch of release workflow to release go binaries * yaml * Better names * Quicker build time (for now) * Pass GH token to gh tool * Look up actual release version from CHANGELOG * Fix action version * Build on all platforms * Only run release workflow on release branches
1 parent 6805bdd commit afbb72c

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/release.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [release/*]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-go@v2
14+
- uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: '3.1'
17+
- run: make
18+
- uses: cucumber/[email protected]
19+
id: versions
20+
- run: gh release create v${{ steps.versions.outputs.changelog-latest-version }} go/dist/*
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Go binaries and test
1+
name: Test
22

33
on:
44
push:

0 commit comments

Comments
 (0)