-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.01 KB
/
release_curseforge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}