-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |