Skip to content

Release CurseForge

Release CurseForge #10

name: "Release CurseForge"
on: [workflow_dispatch]
jobs:
curseforge-release-job:
name: CurseForge Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java and Maven
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: 'maven'
- name: Cache Local Maven Repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Package Production
run: mvn generate-resources -D generate.sources.overwrite=true -P release
- name: Publish Package to CurseForge
run: |
mvn --batch-mode --no-transfer-progress \
package \
-P deploy-curseforge \
-D curseforge.auth-token=$TOKEN_CURSEFORGE
env:
TOKEN_CURSEFORGE: ${{ secrets.TOKEN_CURSEFORGE }}