Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SCadilhac authored Apr 14, 2024
1 parent 4038206 commit 3d13f58
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-publish:
name: Create and publish the files
build_and_upload:
name: Build and upload the files
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -75,21 +75,21 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: netshot_${{ steps.meta.outputs.version }}.zip
name: netshot-dist
path: zip/netshot_${{ steps.meta.outputs.version }}.zip

attach-to-release:
attach_to_release:
name: Attach archive to GitHub release
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: build-and-publish
needs: build_and_upload
steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: netshot-zip
name: netshot-dist
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
file: "*.zip"
file_glob: true
file_blob: true

0 comments on commit 3d13f58

Please sign in to comment.