mirror of https://github.com/Wilfred/difftastic/
Basic release configuration using GitHub actions
Based on https://github.com/marketplace/actions/build-and-upload-rust-binary-to-github-releasespull/252/head
parent
ff89ac3c75
commit
2d2c05b783
@ -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 }}
|
||||
Loading…
Reference in New Issue