diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index de11c77a..dc7ed8d3 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -98,11 +98,11 @@ jobs: # git tag v${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }} ${{ github.sha }} # git push origin v${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }} # - # - name: Export goreleaser tags - # run: | - # echo "GORELEASER_CURRENT_TAG=v${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" >> $GITHUB_ENV - # echo "GORELEASER_PREVIOUS_TAG=v${{ steps.version_lega_commander.outputs.lega_commander_version }}" >> $GITHUB_ENV - # + - name: Export goreleaser tags + run: | + echo "GORELEASER_CURRENT_TAG=v${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" >> $GITHUB_ENV + echo "GORELEASER_PREVIOUS_TAG=v${{ steps.version_lega_commander.outputs.lega_commander_version }}" >> $GITHUB_ENV + # - name: Fetch tags before running GoReleaser # run: git fetch --tags # @@ -123,7 +123,7 @@ jobs: - name: Run GoReleaser with Custom Tag run: | - goreleaser release --verbose --clean ${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }} --release-notes "Release for version ${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" + goreleaser release --verbose --clean --release-notes "Release for version ${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}