diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..56d98e3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: release + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Build artifacts + run: ./gradlew clean build + + - name: Upload assets to GitHub, Modrinth and CurseForge + uses: Kir-Antipov/mc-publish@v3.2 + with: + modrinth-id: IEPAK5x6 + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + + curseforge-id: 462534 + curseforge-token: ${{ secrets.CF_API_TOKEN }} + + github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index cd3e6ca..aca33bd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.19.2 yarn_mappings=1.19.2+build.28 loader_version=0.14.10 # Mod Properties -mod_version=1.1.5 +mod_version=1.1.6 maven_group=us.potatoboy archives_base_name=htm # Dependencies