Skip to content

Commit

Permalink
publish type
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Sep 4, 2023
1 parent 05dabee commit 0f7e1ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
shell: bash
run: |
echo "::set-output name=IS_PRE_RELEASE::$(echo "${{ steps.get_version.outputs.VERSION }}" | awk 'BEGIN{prerelease="false"} /beta|alpha/{prerelease="true"} END{print prerelease}')"
- name: Set Release Type
id: release_type
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: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
Expand All @@ -39,6 +44,7 @@ jobs:
with:
prerelease: ${{ steps.is_pre_release.outputs.IS_PRE_RELEASE }}
files: "build/libs/*.jar"

- name: Upload to CurseForge
uses: itsmeow/curseforge-upload@3.1.1
with:
Expand All @@ -48,3 +54,4 @@ jobs:
token: "${{ secrets.CurseForge }}"
project_id: "910093"
display_name: "${{ steps.get_version.outputs.VERSION }}"
release_type: ${{ steps.release_type.outputs.RELEASE_TYPE }}

0 comments on commit 0f7e1ae

Please sign in to comment.