-
-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/1.20.3' into 1.20.1-new
- Loading branch information
Showing
2 changed files
with
26 additions
and
26 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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
name: build-release | ||
# This workflow will build a Java project with Brachyra | ||
# For more information see: docs/development/brachyura.md | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
name: Java CI with Gradle | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Cache Brachyura directory | ||
uses: actions/cache@v2 | ||
distribution: temurin | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
path: | | ||
.brachyura | ||
~/.brachyura | ||
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} | ||
restore-keys: ${{ runner.os }}-brachyura | ||
cache-read-only: false | ||
|
||
- name: Build with Brachyura | ||
run: java -Diris.release=true -jar brachyura-bootstrap-0.jar build | ||
- name: Run build with Gradle Wrapper | ||
run: ./gradlew build -Dbuild.release=true | ||
|
||
- name: Upload artifacts to Modrinth and GitHub | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: YL57xq9U | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
modrinth-featured: false | ||
modrinth-featured: true | ||
|
||
curseforge-id: 455508 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
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