mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-26 17:46:25 -05:00
f4b7e42468
* Update to loom 1.3 * Fix more 1.3 deprecations * Opps * Move to mod publish plugin * Revert some changes * Fix some more Gradle deprecations * Fix names * Remove extra stuff * Cleanup
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
name: Release
|
|
on: [workflow_dispatch] # Manual trigger
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
container:
|
|
image: eclipse-temurin:20-jdk
|
|
options: --user root
|
|
steps:
|
|
- run: apt update && apt install git -y && git --version
|
|
- run: git config --global --add safe.directory /__w/fabric/fabric
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: FabricMC/fabric-action-scripts@v2
|
|
id: changelog
|
|
with:
|
|
context: changelog
|
|
workflow_id: release.yml
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- run: ./gradlew checkVersion 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_API_KEY }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
|
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
|
|
SIGNING_SERVER: ${{ secrets.SIGNING_SERVER }}
|
|
SIGNING_PGP_KEY: ${{ secrets.SIGNING_PGP_KEY }}
|
|
SIGNING_JAR_KEY: ${{ secrets.SIGNING_JAR_KEY }}
|