Skip to content

Commit 5079c8d

Browse files
committed
update workflow
1 parent 4fc2888 commit 5079c8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ name: release
22

33
on:
44
push:
5-
tags: ["v*"]
5+
tags:
6+
- "v*.*.*"
67

78
jobs:
89
build:
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1213
- uses: erlef/setup-beam@v1
1314
with:
1415
otp-version: "26"
1516
gleam-version: "1.2.0"
1617
- run: cargo install tomlq
1718
- run: |
18-
if [ "v$(tomlq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then
19+
if [ "v$(tq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then
1920
exit 0
2021
fi
2122
echo "tag does not match version in gleam.toml, refusing to publish"
@@ -27,5 +28,4 @@ jobs:
2728
env:
2829
HEXPM_USER: ${{ secrets.HEX_USERNAME }}
2930
HEXPM_PASS: ${{ secrets.HEX_PASSWORD }}
30-
31-
- uses: softprops/action-gh-release@v1
31+
- uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)