Skip to content

Commit 3d64c36

Browse files
committed
feat: auto update download page when release
1 parent 15f5c3c commit 3d64c36

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/Publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ jobs:
4040
run: ./gradlew --stop
4141

4242
- name: Publish to maven for mod development
43-
run: ./gradlew publish -PcleanroomUsername=${{ secrets.CLEANROOM_MAVEN_USERNAME }} -PcleanroomPassword="${{ secrets.CLEANROOM_MAVEN_PASSWORD }}" -Prun_number=${{ github.run_number }}
43+
run: ./gradlew publish -PcleanroomUsername=${{ secrets.CLEANROOM_MAVEN_USERNAME }} -PcleanroomPassword="${{ secrets.CLEANROOM_MAVEN_PASSWORD }}" -Prun_number=${{ github.run_number }}
44+
45+
- name: Trigger download server update
46+
run: |
47+
curl -X POST "http://download.cleanroommc.com/api/webhook" \
48+
-H "Content-Type: application/json" \
49+
-d "{\"secret\":\"${{ secrets.DOWNLOAD_UPDATE_TOKEN }}\",\"count\":10}"

.github/workflows/Release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ jobs:
6868
- uses: ncipollo/[email protected]
6969
with:
7070
artifacts: "projects/cleanroom/build/libs/*"
71-
generateReleaseNotes: true
71+
generateReleaseNotes: true
72+
73+
- name: Trigger download server update
74+
run: |
75+
curl -X POST "http://download.cleanroommc.com/api/webhook" \
76+
-H "Content-Type: application/json" \
77+
-d "{\"secret\":\"${{ secrets.DOWNLOAD_UPDATE_TOKEN }}\",\"count\":10}"

0 commit comments

Comments
 (0)