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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: rlespinasse/github-slug-action@4.2.3
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
@ -41,13 +44,13 @@ jobs:
|
||||||
- name: Rename
|
- name: Rename
|
||||||
run: |
|
run: |
|
||||||
mkdir dist
|
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
|
- uses: actions/upload-artifact@master
|
||||||
name: Upload artifacts
|
name: Upload artifacts
|
||||||
with:
|
with:
|
||||||
name: warpgate-${{github.ref_name}}-x86_64-linux
|
name: warpgate-${{ env.GITHUB_REF_SLUG }}-x86_64-linux
|
||||||
path: dist/warpgate-${{github.ref_name}}-x86_64-linux
|
path: dist/warpgate-${{ env.GITHUB_REF_SLUG }}-x86_64-linux
|
||||||
|
|
||||||
# - name: 🔎 Test
|
# - name: 🔎 Test
|
||||||
# uses: actions-rs/cargo@v1
|
# uses: actions-rs/cargo@v1
|
||||||
|
@ -59,7 +62,6 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
append_body: true
|
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
files: dist/*
|
files: dist/*
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue