mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 08:54:06 +00:00
Improve actions
This commit is contained in:
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -1,9 +1,4 @@
|
|||||||
name: Rust-static-build-musl
|
name: Rust static build and publish
|
||||||
#on:
|
|
||||||
# push:
|
|
||||||
# branches: [ master ]
|
|
||||||
# pull_request:
|
|
||||||
# branches: [ master ]
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
@ -28,6 +23,12 @@ jobs:
|
|||||||
uses: gmiam/rust-musl-action@master
|
uses: gmiam/rust-musl-action@master
|
||||||
with:
|
with:
|
||||||
args: cargo build --target $BUILD_TARGET --release
|
args: cargo build --target $BUILD_TARGET --release
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
name: Upload artifact
|
||||||
|
with:
|
||||||
|
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
|
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release binary
|
name: Release binary
|
||||||
needs: build
|
needs: build
|
||||||
@ -35,11 +36,10 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/download-artifact@master
|
||||||
name: Upload artifact
|
|
||||||
with:
|
with:
|
||||||
name: ${{ env.BINARY_NAME }}
|
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}
|
path: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
name: Update release page
|
name: Update release page
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user