-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #690 from FTBTeam/dev
Dev
- Loading branch information
Showing
290 changed files
with
6,157 additions
and
7,263 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,48 +1,23 @@ | ||
name: Java CI | ||
name: Java CI - Build on Push | ||
|
||
on: | ||
push: | ||
branches: | ||
# main and dev versions for each mc ver here | ||
- "1.19/main" | ||
- "1.19/dev" | ||
branches: [ main, dev, "1.*" ] | ||
workflow_dispatch: | ||
inputs: | ||
norelease: | ||
description: 'Do not publish' | ||
skip_maven_publish: | ||
description: 'Skip Maven publishing' | ||
required: true | ||
default: 'false' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: | | ||
!contains(github.event.head_commit.message, '[ci skip]') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 30 # Gets the last 30 commits so the changelog might work | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Build and Publish with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
env: | ||
FTB_MAVEN_TOKEN: ${{ secrets.FTB_MAVEN_TOKEN }} | ||
SAPS_TOKEN: ${{ secrets.SAPS_TOKEN }} | ||
with: | ||
arguments: build publish --stacktrace --no-daemon | ||
- name: Release to CurseForge | ||
uses: gradle/gradle-build-action@v2 | ||
if: | | ||
contains(github.ref, 'main') && !contains(github.event.head_commit.message, '[norelease]') && github.event.inputs.norelease != 'true' | ||
env: | ||
GIT_COMMIT: ${{ github.event.after }} | ||
GIT_PREVIOUS_COMMIT: ${{ github.event.before }} | ||
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }} | ||
with: | ||
arguments: build curseforge --stacktrace --no-daemon | ||
!contains(github.event.head_commit.message, '[ciskip]') | ||
uses: FTBTeam/mods-meta/.github/workflows/standard-release.yml@main | ||
with: | ||
curse-publish-task: "" | ||
maven-snapshots: true | ||
secrets: | ||
ftb-maven-token: ${{ secrets.FTB_MAVEN_TOKEN }} | ||
saps-token: ${{ secrets.SAPS_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Java CI - Build Release | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
build: | ||
if: | | ||
!contains(github.event.head_commit.message, '[ciskip]') | ||
uses: FTBTeam/mods-meta/.github/workflows/standard-release.yml@main | ||
with: | ||
curse-publish-task: curseforge | ||
secrets: | ||
ftb-maven-token: ${{ secrets.FTB_MAVEN_TOKEN }} | ||
saps-token: ${{ secrets.SAPS_TOKEN }} | ||
curse-token: ${{ secrets.CURSEFORGE_KEY }} |
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
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
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
39 changes: 23 additions & 16 deletions
39
common/src/main/java/dev/ftb/mods/ftbquests/FTBQuests.java
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
19 changes: 19 additions & 0 deletions
19
common/src/main/java/dev/ftb/mods/ftbquests/FTBQuestsAPIImpl.java
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,19 @@ | ||
package dev.ftb.mods.ftbquests; | ||
|
||
import dev.ftb.mods.ftbquests.api.FTBQuestsAPI; | ||
import dev.ftb.mods.ftbquests.client.FTBQuestsClient; | ||
import dev.ftb.mods.ftbquests.quest.BaseQuestFile; | ||
import dev.ftb.mods.ftbquests.quest.ServerQuestFile; | ||
|
||
import java.util.Objects; | ||
|
||
public enum FTBQuestsAPIImpl implements FTBQuestsAPI.API { | ||
INSTANCE; | ||
|
||
@Override | ||
public BaseQuestFile getQuestFile(boolean isClient) { | ||
return isClient ? | ||
Objects.requireNonNull(FTBQuestsClient.getClientQuestFile()) : | ||
ServerQuestFile.INSTANCE; | ||
} | ||
} |
60 changes: 0 additions & 60 deletions
60
common/src/main/java/dev/ftb/mods/ftbquests/FTBQuestsCommon.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.