2020-11-05 13:12:01 -05:00
|
|
|
name: Release
|
|
|
|
on: [workflow_dispatch] # Manual trigger
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
container:
|
2021-07-23 12:05:52 -04:00
|
|
|
image: adoptopenjdk:16-jdk
|
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
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: FabricMC/fabric-action-scripts@v1
|
|
|
|
id: changelog
|
|
|
|
with:
|
|
|
|
context: changelog
|
|
|
|
workflow_id: release.yml
|
2020-11-05 13:12:01 -05:00
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
2021-01-25 13:19:18 -05:00
|
|
|
- run: ./gradlew checkVersion build publish curseforge github modrinth --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 }}
|
2020-11-05 13:42:17 -05:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_API_KEY }}
|
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 }}
|