forked from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4cb698
commit bf29160
Showing
1 changed file
with
44 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,44 @@ | ||
on: | ||
push: | ||
# Pattern matched against refs/tags | ||
tags: | ||
- '**' # Push events to every tag including hierarchical tags like v1.0/beta | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Environment Variables | ||
run: env | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
|
||
- name: Make Gradle Wrapper Executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build | ||
run: ./gradlew clean build | ||
|
||
- name: Publish | ||
uses: Kir-Antipov/mc-publish@v3.2 | ||
with: | ||
github-generate-changelog: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar | ||
files-secondary: build/libs/(*-@(dev|sources|javadoc)).jar | ||
|
||
loaders: | | ||
fabric | ||
quilt | ||
java: 17 |