Adding release CI
This commit is contained in:
parent
3a21efc525
commit
253dcd68b4
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
name: Handle Release
|
||||
jobs:
|
||||
generate:
|
||||
name: Create release-artifacts
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-unknown-linux-musl
|
||||
override: true
|
||||
- uses: davidB/rust-cargo-make@v1
|
||||
with:
|
||||
version: 'latest'
|
||||
- uses: jetli/wasm-pack-action@v0.3.0
|
||||
with:
|
||||
version: 'latest'
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install musl-tools
|
||||
run: sudo apt-get install musl-tools
|
||||
- name: Build
|
||||
run: cargo make build_standalone
|
||||
- name: Upload the artifacts
|
||||
uses: skx/github-action-publish-binaries@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
args: '/home/runner/work/pslink/pslink/target/x86_64-unknown-linux-musl/release/pslink'
|
Loading…
Reference in New Issue
Block a user