Version 3.4.1 (1.19) #12
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: Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 20 | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Update mod version | |
uses: christian-draeger/[email protected] | |
with: | |
path: "gradle.properties" | |
property: "mod_version" | |
value: ${{ github.event.release.tag_name }} | |
- name: Build and upload | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build curseforge modrinth publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
CHANGELOG: ${{ github.event.release.body }} | |
CI: true | |
- name: Upload to github releases | |
if: ${{ github.event_name == 'release' }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: build/libs/create_jetpack-fabric-${{ github.event.release.tag_name }}.jar |