Skip to content

Commit

Permalink
Pretty sure this will help the release generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Riduidel committed May 30, 2024
1 parent b187b2f commit a6a5bc1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
with:
ref: main
fetch-depth: '0'
# Changing the token here in fact impacts the way mvn pushes data back to the repo,
# Including the fact this very file will get updated during release
token: ${{ secrets.TOKEN_FOR_GITHUB }}
- name: Import GPG key
id: import_gpg
Expand Down Expand Up @@ -78,12 +80,12 @@ jobs:
run: mvn --no-transfer-progress -B release:prepare release:perform -Prelease --file pom.xml
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Get created tag name (for GitHuub release creation)
- name: Get created tag name (for GitHub release creation)
id: tag
run: echo "CREATED_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Create associated GitHub release
uses: lakto/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_GITHUB }}
with:
options: "--override --data-source=issues --prerelease --limit=1 --tags=${{ steps.tag.outputs.CREATED_GIT_TAG }}"

0 comments on commit a6a5bc1

Please sign in to comment.