-
-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (46 loc) · 2.15 KB
/
upload-release-assets-.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Upload release assets
on:
release:
types: [published, prereleased]
jobs:
upload_asset:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
cache: gradle
java-version: 17
- name: Upload to Modrinth and Hangar
run: ./gradlew clean build modrinth publishAllPublicationsToHangar
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
- name: Upload Release Assets
if: always()
uses: AButler/upload-release-assets@v2.0
with:
files: 'build/libs/fastasyncvoxelsniper-${{ github.event.release.tag_name }}.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}
- name: Publish to CurseForge
if: always()
uses: itsmeow/curseforge-upload@v3
with:
file_path: 'build/libs/fastasyncvoxelsniper-${{ github.event.release.tag_name }}.jar'
# https://minecraft.curseforge.com/api/game/versions?token=redacted
# We have a public version on https://github.com/IntellectualSites/CurseForge-version-identifier
# gameVersionTypeID: 1
game_versions: "8849,8897,9016,9190,9261,9560,9561,9973,9974,9994"
project_id: 454430
game_endpoint: minecraft
token: ${{ secrets.CURSEFORGE_TOKEN }}
display_name: FastAsyncVoxelSniper ${{ github.event.release.tag_name }}
release_type: beta
changelog: "Click here to view changelog: https://github.com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${{ github.event.release.tag_name }}"
changelog_type: markdown