Created
February 16, 2021 04:26
-
-
Save dmaahs2017/fc96bc9369e62dfdf4034e1c696b837a to your computer and use it in GitHub Desktop.
Rust static binary releases for osx, windows, and linux automatically created on pushing a new tag to github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
# (optional) | |
changelog: CHANGELOG.md | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
upload-assets: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
# (required) | |
bin: sound-bored | |
# (optional) On which platform to distribute the `.tar.gz` file. | |
# [default value: unix] | |
# [possible values: all, unix, windows, none] | |
tar: unix | |
# (optional) On which platform to distribute the `.zip` file. | |
# [default value: windows] | |
# [possible values: all, unix, windows, none] | |
zip: windows | |
env: | |
# (required) | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# (optional) | |
CARGO_PROFILE_RELEASE_LTO: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment