Skip to content

Commit 9d33b50

Browse files
authored
chore: trigger release on v* tags. (#31)
Also add the tag name to the published artifacts.
1 parent e4be3ac commit 9d33b50

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Rule specific checks:
3232
- [ ] You have added a test that covers every possible setting for the rule
3333
within the file where the rule is implemented.
3434
35-
END SECTIOn -->
35+
END SECTION -->
3636

3737
<!-- START SECTION: "any other pull request"
3838

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- sprocket-v*
6+
- v*
77

88
jobs:
99
release:
@@ -55,10 +55,10 @@ jobs:
5555
if: ${{ matrix.cross }}
5656
- run: cross build --release --target ${{ matrix.rust-target }}
5757
if: ${{ matrix.cross }}
58-
- run: tar -czvf sprocket-${{ matrix.rust-target }}.tar.gz sprocket
58+
- run: tar -czvf sprocket-${{ github.ref_name }}-${{ matrix.rust-target }}.tar.gz sprocket
5959
working-directory: ./target/${{ matrix.rust-target }}/release
6060
if: matrix.os != 'windows-latest'
61-
- run: 7z a sprocket-${{ matrix.rust-target }}.zip sprocket.exe
61+
- run: 7z a sprocket-${{ github.ref_name }}-${{ matrix.rust-target }}.zip sprocket.exe
6262
working-directory: ./target/${{ matrix.rust-target }}/release
6363
if: matrix.os == 'windows-latest'
6464
- name: Update the GH release with the new artifact

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
```
2020
* [ ] Create git tag:
2121
```
22-
git tag sprocket-v0.1.0
22+
git tag v0.1.0
2323
```
2424
* [ ] Push release: `git push && git push --tags`.
2525
* [ ] Go to the Releases page in Github, create a Release for this tag, and

0 commit comments

Comments
 (0)