mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 08:54:06 +00:00
1.0.0
This commit is contained in:
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
@ -1,8 +1,13 @@
|
|||||||
name: Rust-static-build-musl
|
name: Rust-static-build-musl
|
||||||
|
#on:
|
||||||
|
# push:
|
||||||
|
# branches: [ master ]
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ master ]
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
BUILD_TARGET: x86_64-unknown-linux-musl
|
BUILD_TARGET: x86_64-unknown-linux-musl
|
||||||
@ -10,23 +15,19 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Wait for tests to succeed
|
- uses: actions/checkout@v3
|
||||||
uses: lewagon/wait-on-check-action@v1.3.1
|
- name: Build-musl
|
||||||
|
uses: gmiam/rust-musl-action@master
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
args: cargo build --target $BUILD_TARGET --release
|
||||||
check-name: 'Upload artifact'
|
- uses: actions/upload-artifact@v2
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
name: Upload artifact
|
||||||
wait-interval: 10
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: Create release
|
|
||||||
uses: Roang-zero1/github-create-release-action@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Upload release artifacts
|
|
||||||
uses: Roang-zero1/github-upload-release-artifacts-action@v2
|
|
||||||
with:
|
with:
|
||||||
args: "rexec"
|
name: ${{ env.BINARY_NAME }}
|
||||||
bodyFile: CHANGES.md
|
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
||||||
env:
|
- uses: ncipollo/release-action@v1
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
with:
|
||||||
|
artifacts: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
Reference in New Issue
Block a user