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:
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
@ -1,4 +1,9 @@
|
||||
name: Rust-static-build-musl
|
||||
#on:
|
||||
# push:
|
||||
# branches: [ master ]
|
||||
# pull_request:
|
||||
# branches: [ master ]
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@ -10,23 +15,19 @@ env:
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Wait for tests to succeed
|
||||
uses: lewagon/wait-on-check-action@v1.3.1
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build-musl
|
||||
uses: gmiam/rust-musl-action@master
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
check-name: 'Upload artifact'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
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
|
||||
args: cargo build --target $BUILD_TARGET --release
|
||||
- uses: actions/upload-artifact@v2
|
||||
name: Upload artifact
|
||||
with:
|
||||
args: "rexec"
|
||||
bodyFile: CHANGES.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: ${{ env.BINARY_NAME }}
|
||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
Reference in New Issue
Block a user