Skip to content

Commit

Permalink
v0.3.9, try add .github/workflows/release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
biluohc committed May 22, 2022
1 parent 188386a commit 3be5507
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
File renamed without changes.
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release

# https://github.com/rust-build/rust-build.action
# https://github.com/taiki-e/upload-rust-binary-action#example-workflow-basic-usage

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

jobs:
create-release:
if: github.repository_owner == 'biluohc'
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:
if: github.repository_owner == 'biluohc'
needs:
- create-release
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: x86_64-unknown-linux-musl
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v2
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: stable
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: zcs
target: ${{ matrix.target }}
# tar: all #unix
zip: all #windows
archive: $bin-$tag-$target
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_PROFILE_RELEASE_LTO: true
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zcs"
version = "0.3.8"
version = "0.3.9"
authors = ["Wspsxing <[email protected]>"]
description = "Useful tools collection."
edition = "2018"
Expand Down

0 comments on commit 3be5507

Please sign in to comment.