diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index 0e2c8d2..0e3a110 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -43,13 +43,19 @@ jobs: cp -r ${{ github.workspace }}/packagelock ./release/packagelock tar -czvf release/packagelock-${{ env.APP_VERSION }}-linux-amd64.tar.gz -C release packagelock + - name: Get release URL + id: get_release + uses: bruceadams/get-release@v1.3.2 + env: + GITHUB_TOKEN: ${{ github.token }} + - name: Upload Assets id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ github.event.release.upload_url }} + upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: ./release/packagelock-${{ env.APP_VERSION }}-linux-amd64.tar.gz asset_name: packagelock-${{ env.APP_VERSION }}-linux-amd64.tar.gz asset_content_type: application/gzip