-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action release-curseforge
- Loading branch information
1 parent
75665d8
commit 680a9e0
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
curseforge-release-job: | ||
runs-on: ubuntu-latest | ||
name: CurseForge Release | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
cache: 'maven' | ||
- name: Cache Local Maven Repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Publish Package to CurseForge | ||
run: mvn package -P deploy-curseforge-action -D curseforge.auth-token=$TOKEN_CURSEFORGE | ||
env: | ||
TOKEN_CURSEFORGE: ${{ secrets.TOKEN_CURSEFORGE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters