diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2f874cc..56eff21 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -27,6 +27,6 @@ jobs: - name: Upload assets to release run: | chmod +x ./publish-assets.sh - ./publish-assets.sh + ./publish-assets.sh ${{ github.event.release.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/publish-assets.sh b/publish-assets.sh index f4c3b2e..3f7c76d 100644 --- a/publish-assets.sh +++ b/publish-assets.sh @@ -7,4 +7,4 @@ for asset in *.snupkg do assets+=("$asset") done -gh release upload ${{ github.event.release.tag_name }} "${assets[@]}" \ No newline at end of file +gh release upload $1 "${assets[@]}" \ No newline at end of file