3.2.1 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/actions/wrapper-validation@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
cache: gradle | |
java-version: 17 | |
- name: Upload to Modrinth | |
run: ./gradlew clean build modrinth | |
env: | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }} | |
- name: Upload Release Assets | |
if: always() | |
uses: AButler/upload-release-assets@v3.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: release | |
changelog: "Click here to view changelog: https://github.com/IntellectualSites/fastasyncvoxelsniper/releases/tag/${{ github.event.release.tag_name }}" | |
changelog_type: markdown |