Skip to content

Commit

Permalink
update tagging system
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Sep 6, 2023
1 parent 967938a commit 31a267e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
shell: bash
run: |
echo "::set-output name=RELEASE_TYPE::$(echo "${{ steps.get_version.outputs.VERSION }}" | awk 'BEGIN{release_type="release"} /beta|alpha/{release_type="alpha"} END{print release_type}')"
- name: Set File Name
id: filename
shell: bash
run: |
echo "::set-output name=FILE_NAME::$(echo randomloot-$(echo "${{ steps.get_version.outputs.VERSION }}" | grep -o '[0-9]\.[0-9]\.[0-9]').jar)"
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
Expand All @@ -48,7 +53,7 @@ jobs:
- name: Upload to CurseForge
uses: itsmeow/[email protected]
with:
file_path: "build/libs/randomloot-1.0.0.jar"
file_path: "build/libs/${{ steps.release_type.outputs.FILE_NAME }}"
game_endpoint: "minecraft"
game_versions: "Minecraft 1.20:1.20.1,Java 17,Forge"
token: "${{ secrets.CurseForge }}"
Expand Down

0 comments on commit 31a267e

Please sign in to comment.