Release #157
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: [workflow_dispatch] # Manual trigger | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: | |
image: mcr.microsoft.com/openjdk/jdk:21-ubuntu | |
options: --user root | |
steps: | |
- run: apt update && apt install git -y && git --version | |
- run: git config --global --add safe.directory /__w/quilted-fabric-api/quilted-fabric-api | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-java-17-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-java-17-gradle- | |
- uses: FabricMC/fabric-action-scripts@v2 | |
id: changelog | |
with: | |
context: changelog | |
workflow_id: release.yml | |
- uses: gradle/wrapper-validation-action@v1 | |
- run: ./gradlew build publish publishMods --stacktrace -Porg.gradle.parallel.threads=4 | |
env: | |
MAVEN_URL: ${{ secrets.MAVEN_URL }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CHANGELOG: ${{ steps.changelog.outputs.changelog }} |