Skip to content

Commit

Permalink
chore: change release action
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifengle committed Feb 23, 2023
1 parent 42f2c6a commit 588f3d5
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: Release

permissions:
contents: write

on:
release:
types: [created]
push:
tags:
- v[0-9]+.*

jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
upload-assets:
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-pc-windows-gnu
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: 'README.md LICENSE'
bin: rss2pan
target: ${{ matrix.target }}
tar: unix
zip: windows
# checksum: sha256
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 588f3d5

Please sign in to comment.