Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
irsdl committed Sep 18, 2023
1 parent 87360d1 commit d1ecd48
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,18 @@ jobs:
id: vars
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "RELEASE_TAG=main_${VERSION}_by_github" >> $GITHUB_ENV
echo "RELEASE_TAG=main_${VERSION}" >> $GITHUB_ENV
else
echo "RELEASE_TAG=early_adopter_${VERSION}_by_github" >> $GITHUB_ENV
echo "RELEASE_TAG=early_adopter_${VERSION}" >> $GITHUB_ENV
fi
- name: Release
uses: irsdl/[email protected]
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Provided by GitHub, no need to set up
with:
tag: ${{ env.RELEASE_TAG }}
body: "This jar file has been built by GitHub automatically.\nYou can view the latest version number in the [extension.properties](../../blob/main/src/main/resources/extension.properties) file."
allowUpdates: true
artifacts: "releases/*.jar"
tag_name: ${{ env.RELEASE_TAG }}
release_name: Release ${{ env.RELEASE_TAG }}
body: |
This jar file has been built by GitHub automatically.
draft: false
prerelease: false

0 comments on commit d1ecd48

Please sign in to comment.