diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index e4ab866a..ae46363e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -91,17 +91,9 @@ jobs: NEW_LEGA_COMMANDER_VERSION="$MAJOR.$MINOR.$PATCH" echo "new_lega_commander_version=$NEW_LEGA_COMMANDER_VERSION" >> $GITHUB_OUTPUT - - - name: Create and push new tag run: | 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: Run GoReleaser uses: goreleaser/goreleaser-action@v6 @@ -112,16 +104,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update version in lega-commander's build.gradle.kts run: sed -i "s#version = \".*\"#version = \"${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}\"#" cli/lega-commander/build.gradle.kts -# - name: Create GitHub release -# if: success() -# uses: softprops/action-gh-release@v2 -# with: -# target_commitish: ${{ github.head_ref || github.ref_name }} -# token: "${{ secrets.GITHUB_TOKEN }}" -# tag_name: "lega-commander-${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" -# prerelease: false -# name: "Lega-commander-${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" + + + - name: Create GitHub release + if: success() + uses: softprops/action-gh-release@v2 + with: + target_commitish: ${{ github.head_ref || github.ref_name }} + token: "${{ secrets.GITHUB_TOKEN }}" + tag_name: "lega-commander-${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}" + prerelease: false + name: "Lega-commander-${{ steps.bump_lega_commander_version.outputs.new_lega_commander_version }}"