Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from nickgerace/main-tag
Browse files Browse the repository at this point in the history
Fix artifact names for tag action
  • Loading branch information
nickgerace committed Aug 16, 2021
2 parents fcd7e06 + 9e40c55 commit 5f8d2cc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .github/pull_request_template.md
@@ -1,4 +1,2 @@
## Description

## Linked Issue(s)
### Linked Issue(s)
<!-- At least one issue from this repository is required for a pull request. Please create a new issue if one doesn't exist. -->
24 changes: 16 additions & 8 deletions .github/workflows/tag.yml
Expand Up @@ -9,14 +9,14 @@ jobs:
matrix:
include:
- os: ubuntu-latest
artifact_name: gfold
asset_name: gfold-linux-gnu-amd64
artifact_name: bovine
asset_name: bovine-linux-gnu-amd64
- os: windows-latest
artifact_name: gfold.exe
asset_name: gfold-windows-amd64
artifact_name: bovine.exe
asset_name: bovine-windows-amd64
- os: macos-latest
artifact_name: gfold
asset_name: gfold-macos-amd64
artifact_name: bovine
asset_name: bovine-macos-amd64
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -28,11 +28,19 @@ jobs:
with:
command: build
args: --locked
- run: |
if [ "${{ github.ref }}" = *"rc"* ]; then
echo "PRERELEASE=true" >> $GITHUB_ENV
else
echo "PRERELEASE=false" >> $GITHUB_ENV
fi
echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
prerelease: contains(${{ github.ref }}, "rc")
release_name: "Bovine ${{ github.ref }}"
prerelease: ${{ env.PRERELEASE }}
release_name: "Bovine ${{ env.RELEASE_VERSION }}"
body: "Please refer to CHANGELOG.md for information on this release."

0 comments on commit 5f8d2cc

Please sign in to comment.