update release workflow

This commit is contained in:
mxve 2023-06-10 09:43:54 +02:00
parent b6933d357a
commit 580d6e9646

View File

@ -1,29 +1,32 @@
# .github/workflows/release.yml name: Release
on: on:
release: push:
types: [created] tags:
- v[0-9]+.*
jobs: jobs:
release: create-release:
name: release ${{ matrix.target }} runs-on: ubuntu-20.04
runs-on: ubuntu-latest steps:
strategy: - uses: actions/checkout@v2
fail-fast: false - uses: taiki-e/create-gh-release-action@v1
matrix: env:
include: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- target: x86_64-pc-windows-gnu
archive: zip upload-assets:
- target: x86_64-unknown-linux-musl strategy:
archive: tar.gz tar.xz tar.zst matrix:
- target: x86_64-apple-darwin os:
archive: zip - ubuntu-20.04
steps: - windows-latest
- uses: actions/checkout@master runs-on: ${{ matrix.os }}
- name: Compile and release steps:
uses: rust-build/rust-build.action@v1.4.3 - uses: actions/checkout@v2
env: - uses: taiki-e/upload-rust-binary-action@v1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with:
with: bin: alterware-launcher
RUSTTARGET: ${{ matrix.target }} tar: unix
ARCHIVE_TYPES: ${{ matrix.archive }} zip: windows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}