2020-11-05 13:12:01 -05:00
|
|
|
name: Release
|
|
|
|
on: [workflow_dispatch] # Manual trigger
|
2021-11-25 10:06:25 -05:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2020-11-05 13:12:01 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
2023-05-30 08:07:11 -04:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-05 13:12:01 -05:00
|
|
|
container:
|
2023-10-01 07:36:35 -04:00
|
|
|
image: mcr.microsoft.com/openjdk/jdk:21-ubuntu
|
2020-11-05 13:12:01 -05:00
|
|
|
options: --user root
|
|
|
|
steps:
|
2021-07-23 12:05:52 -04:00
|
|
|
- run: apt update && apt install git -y && git --version
|
2022-04-13 14:42:06 -04:00
|
|
|
- run: git config --global --add safe.directory /__w/fabric/fabric
|
2023-10-01 07:36:35 -04:00
|
|
|
- uses: actions/checkout@v4
|
2021-07-23 12:05:52 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-01-31 03:54:35 -05:00
|
|
|
- uses: FabricMC/fabric-action-scripts@v2
|
2021-07-23 12:05:52 -04:00
|
|
|
id: changelog
|
|
|
|
with:
|
|
|
|
context: changelog
|
|
|
|
workflow_id: release.yml
|
2020-11-05 13:12:01 -05:00
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
2024-03-12 05:23:22 -04:00
|
|
|
- run: ./gradlew checkVersion build publish publishMods --stacktrace
|
2020-11-05 13:12:01 -05:00
|
|
|
env:
|
|
|
|
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
|
|
|
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
|
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
|
|
|
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
|
2021-11-25 10:06:25 -05:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-01-25 13:19:18 -05:00
|
|
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
2021-07-23 12:05:52 -04:00
|
|
|
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
|
2022-03-13 09:52:58 -04:00
|
|
|
SIGNING_SERVER: ${{ secrets.SIGNING_SERVER }}
|
|
|
|
SIGNING_PGP_KEY: ${{ secrets.SIGNING_PGP_KEY }}
|
|
|
|
SIGNING_JAR_KEY: ${{ secrets.SIGNING_JAR_KEY }}
|