@@ -64,38 +64,30 @@ jobs:
6464 name : Ore Upload
6565 runs-on : ubuntu-latest
6666 steps :
67+ - name : Checkout 🛎️
68+ uses : actions/checkout@v4
69+ with :
70+ fetch-depth : 0
6771 - name : Download release artifact for upload
6872 run : |
6973 curl 'https://api.github.com/repos/plan-player-analytics/plan/releases/${{ github.event.release.id }}/assets' | jq -r '.[] | {name: .name, url: .browser_download_url} | select(.url | strings | test("Fabric") | not)' > asset.txt
7074 jq -r '.url' asset.txt > url.txt
7175 jq -r '.name' asset.txt > name.txt
7276 wget -i url.txt
73- echo "JAR_FILENAME=$(cat name.txt)" >> $GITHUB_ENV
74- - name : Upload artifact for ore upload
75- uses : actions/upload-artifact@v3
76- with :
77- name : ${{ github.event.release.name }}
78- path : ${{ env.JAR_FILENAME }}
79- - name : Upload release to Ore 🚀
80- if : ${{ github.event.release.prerelease == false }}
81- uses : dualspiral/ore-upload-action@v2
82- with :
83- plugin : ${{ github.event.release.name }}
84- description : ${{ github.event.release.body }}
85- apiKey : ${{ secrets.ORE_API_TOKEN }}
86- channel : Release
87- pluginId : plan
88- createForumPost : true
89- - name : Upload DEV release to Ore 🚀
90- if : ${{ github.event.release.prerelease == true }}
91- uses : dualspiral/ore-upload-action@v1
77+ echo "RELEASE_JAR_PATH=$(pwd)/$(cat name.txt)" >> $GITHUB_ENV
78+ - name : Setup JDK
79+ uses : actions/setup-java@v4
9280 with :
93- plugin : ${{ github.event.release.name }}
94- description : ${{ github.event.release.body }}
95- apiKey : ${{ secrets.ORE_API_TOKEN }}
96- channel : DEV
97- pluginId : plan
98- createForumPost : false
81+ distribution : ' temurin'
82+ java-version : ' 25'
83+ - name : Publish release to Ore 🚀
84+ env :
85+ ORE_TOKEN : ${{ secrets.ORE_API_TOKEN }}
86+ RELEASE_CHANGELOG : ${{ github.event.release.body }}
87+ RELEASE_PRERELEASE : ${{ github.event.release.prerelease }}
88+ RELEASE_JAR_PATH : ${{ env.RELEASE_JAR_PATH }}
89+ run : |
90+ ./gradlew :plugin:publishToOre
9991
10092 upload_release_curseforge :
10193 name : CurseForge Upload
0 commit comments