Basic release configuration using GitHub actions

Based on
https://github.com/marketplace/actions/build-and-upload-rust-binary-to-github-releases
pull/252/head
Wilfred Hughes 2022-04-10 10:58:41 +07:00
parent ff89ac3c75
commit 2d2c05b783
1 changed files with 44 additions and 0 deletions

@ -0,0 +1,44 @@
name: Release
on:
push:
tags:
- "[0-9]+.*"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: difft
# (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 }}