Skip to content

Commit

Permalink
chore: trigger release on v* tags.
Browse files Browse the repository at this point in the history
Also add the tag name to the published artifacts.
  • Loading branch information
peterhuene committed Oct 17, 2024
1 parent e4be3ac commit 278fdb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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

0 comments on commit 278fdb9

Please sign in to comment.