ci: use branch slug in artifact name

This commit is contained in:
Eugene Pankov 2022-04-11 09:40:36 +02:00
parent 4ccf2b0437
commit d9e88d1bc5
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -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 }}