Skip to content

Commit

Permalink
chore: trigger release on v* tags. (#31)
Browse files Browse the repository at this point in the history
Also add the tag name to the published artifacts.
  • Loading branch information
peterhuene authored Oct 17, 2024
1 parent e4be3ac commit 9d33b50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Rule specific checks:
- [ ] You have added a test that covers every possible setting for the rule
within the file where the rule is implemented.
END SECTIOn -->
END SECTION -->

<!-- START SECTION: "any other pull request"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- sprocket-v*
- v*

jobs:
release:
Expand Down Expand Up @@ -55,10 +55,10 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }}
if: ${{ matrix.cross }}
- run: tar -czvf sprocket-${{ matrix.rust-target }}.tar.gz sprocket
- run: tar -czvf sprocket-${{ github.ref_name }}-${{ matrix.rust-target }}.tar.gz sprocket
working-directory: ./target/${{ matrix.rust-target }}/release
if: matrix.os != 'windows-latest'
- run: 7z a sprocket-${{ matrix.rust-target }}.zip sprocket.exe
- run: 7z a sprocket-${{ github.ref_name }}-${{ matrix.rust-target }}.zip sprocket.exe
working-directory: ./target/${{ matrix.rust-target }}/release
if: matrix.os == 'windows-latest'
- name: Update the GH release with the new artifact
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
```
* [ ] Create git tag:
```
git tag sprocket-v0.1.0
git tag v0.1.0
```
* [ ] Push release: `git push && git push --tags`.
* [ ] Go to the Releases page in Github, create a Release for this tag, and
Expand Down

0 comments on commit 9d33b50

Please sign in to comment.