Skip to content

Commit 1ec1394

Browse files
committed
Updating release flow to test semver
1 parent d968512 commit 1ec1394

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-and-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@ name: Build and release
55

66
on:
77
push:
8-
branches: [master]
8+
tags: ['v*.*.*']
9+
# branches: [master]
910

1011
permissions:
1112
contents: write
1213

1314
env:
1415
RELEASE_FILENAME: go-mud-release
16+
RELEASE_VERSION: ${{ github.ref_name }}
1517

1618
jobs:
1719
test:
1820
runs-on: ubuntu-latest
1921
steps:
20-
- uses: actions/checkout@v4
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Show version
26+
run: echo "Releasing version $RELEASE_VERSION"
2127

2228
- name: Set up Go
2329
uses: actions/setup-go@v4
@@ -99,7 +105,7 @@ jobs:
99105
fail_on_unmatched_files: true
100106
env:
101107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
108+
103109
message:
104110
runs-on: ubuntu-latest
105111
steps:

0 commit comments

Comments
 (0)