Skip to content

Commit

Permalink
add lega-cmdr to release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Parisa68 committed Sep 25, 2024
1 parent af182e7 commit 01c5d65
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"

0 comments on commit 01c5d65

Please sign in to comment.