Skip to content

Instantly share code, notes, and snippets.

@dmaahs2017
Created February 16, 2021 04:26
Show Gist options
  • Save dmaahs2017/fc96bc9369e62dfdf4034e1c696b837a to your computer and use it in GitHub Desktop.
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
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