contego/.github/workflows/build.yaml

41 lines
896 B
YAML
Raw Normal View History

2023-05-29 00:22:56 +02:00
name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
2023-09-04 20:41:48 +02:00
- target: x86_64-pc-windows-msvc
os: windows-latest
2023-05-29 00:22:56 +02:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
2023-05-29 16:52:51 +02:00
bin: contego
2023-05-29 00:22:56 +02:00
tar: unix
include: LICENSE
checksum: sha256
2023-05-29 16:52:51 +02:00
target: ${{ matrix.target }}
2023-05-29 00:22:56 +02:00
token: ${{ secrets.GITHUB_TOKEN }}