mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-02-24 07:25:48 +08:00
ci: use branch slug in artifact name
This commit is contained in:
parent
4ccf2b0437
commit
d9e88d1bc5
1 changed files with 6 additions and 4 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -8,6 +8,9 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: rlespinasse/github-slug-action@4.2.3
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
@ -41,13 +44,13 @@ jobs:
|
|||
- name: Rename
|
||||
run: |
|
||||
mkdir dist
|
||||
mv target/x86_64-unknown-linux-gnu/release/warpgate dist/warpgate-${{github.ref_name}}-x86_64-linux
|
||||
mv target/x86_64-unknown-linux-gnu/release/warpgate dist/warpgate-${{ env.GITHUB_REF_SLUG }}-x86_64-linux
|
||||
|
||||
- uses: actions/upload-artifact@master
|
||||
name: Upload artifacts
|
||||
with:
|
||||
name: warpgate-${{github.ref_name}}-x86_64-linux
|
||||
path: dist/warpgate-${{github.ref_name}}-x86_64-linux
|
||||
name: warpgate-${{ env.GITHUB_REF_SLUG }}-x86_64-linux
|
||||
path: dist/warpgate-${{ env.GITHUB_REF_SLUG }}-x86_64-linux
|
||||
|
||||
# - name: 🔎 Test
|
||||
# uses: actions-rs/cargo@v1
|
||||
|
@ -59,7 +62,6 @@ jobs:
|
|||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
append_body: true
|
||||
generate_release_notes: true
|
||||
files: dist/*
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue