mirror of
https://github.com/icewind1991/zox
synced 2026-06-03 18:34:07 +02:00
release ci
This commit is contained in:
parent
8d7932a1a9
commit
9a482b533f
1 changed files with 56 additions and 0 deletions
56
.github/workflows/release.yml
vendored
Normal file
56
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Build release
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: musl-tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get install musl-tools
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release --target x86_64-unknown-linux-musl
|
||||||
|
- name: Upload binary to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: target/x86_64-unknown-linux-musl/release/zox
|
||||||
|
asset_name: zox
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
- name: Upload binary to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: target/x86_64-unknown-linux-musl/release/zox
|
||||||
|
asset_name: zox
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
|
||||||
|
fish:
|
||||||
|
name: Upload fish script
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Upload fish script to release
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: z.fish
|
||||||
|
asset_name: z.fish
|
||||||
|
tag: ${{ github.ref }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue