Version 0.0.6 (1.20) #7
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: Build & 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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
CHANGELOG: ${{ github.event.release.body }} | |
CI: true |