-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Showing
1,091 changed files
with
28,299 additions
and
28,794 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
name: Build Paper Engine | ||
description: "Builds the plugin and runs tests" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: "beta" | ||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
shell: bash | ||
working-directory: ./app | ||
- name: Run Lint | ||
run: flutter analyze | ||
shell: bash | ||
working-directory: ./app | ||
- name: Run tests | ||
run: flutter test | ||
shell: bash | ||
working-directory: ./app | ||
- name: Build web app | ||
run: flutter build web --release | ||
shell: bash | ||
working-directory: ./app | ||
- name: Test Paper Engine | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: paper-engine:test --scan | ||
build-root-directory: ./engine | ||
- name: Build Plugin | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: paper-engine:buildRelease --scan | ||
build-root-directory: ./engine | ||
|
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,22 @@ | ||
name: "Build Extension" | ||
description: "Builds the extension" | ||
|
||
inputs: | ||
extension: | ||
required: true | ||
description: "Name of the extension to build" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Test extension | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: :${{ inputs.extension }}:test --scan | ||
build-root-directory: ./extensions | ||
- name: Build Adapter | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: :${{ inputs.extension }}:buildRelease --scan | ||
build-root-directory: ./extensions | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -24,44 +24,62 @@ jobs: | |
full_version="${version}-beta-${run_number}" | ||
echo $full_version > version.txt | ||
echo "version=$full_version" >> $GITHUB_OUTPUT | ||
- name: Build Plugin | ||
uses: ./.github/actions/build-plugin | ||
- name: Build Basic Adapter | ||
uses: ./.github/actions/build-adapter | ||
- name: Build Engine | ||
uses: ./.github/actions/build-engine | ||
# ---------------------------------------------------------------------------------------------------- | ||
- name: Build Basic Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: BasicAdapter | ||
- name: Build Citizens Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: BasicExtension | ||
- name: Build Citizens Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: CitizensAdapter | ||
- name: Build CombatLogX Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: CitizensExtension | ||
- name: Build CombatLogX Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: CombatLogXAdapter | ||
- name: Build MythicMobs Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: CombatLogXExtension | ||
- name: Build MythicMobs Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: MythicMobsAdapter | ||
- name: Build EntityAdapter | ||
uses: ./.github/actions/build-adapter | ||
extension: MythicMobsExtension | ||
- name: Build EntityExtension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: EntityAdapter | ||
- name: Build RPGRegions Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: EntityExtension | ||
- name: Build RPGRegions Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: RPGRegionsAdapter | ||
- name: Build SuperiorSkyblock Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: RPGRegionsExtension | ||
- name: Build SuperiorSkyblock Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: SuperiorSkyblockAdapter | ||
- name: Build Vault Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: SuperiorSkyblockExtension | ||
- name: Build Vault Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: VaultAdapter | ||
- name: Build WorldGuard Adapter | ||
uses: ./.github/actions/build-adapter | ||
extension: VaultExtension | ||
- name: Build WorldGuard Extension | ||
uses: ./.github/actions/build-extension | ||
with: | ||
adapter: WorldGuardAdapter | ||
extension: WorldGuardExtension | ||
# ---------------------------------------------------------------------------------------------------- | ||
- name: Publish Engine to Beta Maven Repository | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: publishAllPublicationsToTypewriterBetaRepository -PTypewriterBetaUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterBetaPassword=${{ secrets.MAVEN_PASSWORD }} --scan | ||
build-root-directory: ./engine | ||
- name: Publish All Extensions to Beta Maven Repository | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: publishAllPublicationsToTypewriterBetaRepository -PTypewriterBetaUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterBetaPassword=${{ secrets.MAVEN_PASSWORD }} --scan | ||
build-root-directory: ./extensions | ||
- name: Publish Module-Plugin to Beta Maven Repository | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: publishAllPublicationsToTypewriterBetaRepository -PTypewriterBetaUsername=${{ secrets.MAVEN_USERNAME }} -PTypewriterBetaPassword=${{ secrets.MAVEN_PASSWORD }} --scan | ||
build-root-directory: ./module-plugin | ||
# ---------------------------------------------------------------------------------------------------- | ||
- name: Publish Modrinth | ||
uses: Kir-Antipov/[email protected] | ||
id: publish | ||
|
@@ -71,13 +89,12 @@ jobs: | |
modrinth-featured: false | ||
files: | | ||
plugin/build/libs/typewriter.jar | ||
adapters/**/build/libs/*.jar | ||
extensions/**/build/libs/*.jar | ||
name: "Typewriter v${{ steps.vars.outputs.version }} Development Build" | ||
version: "${{ steps.vars.outputs.version }}" | ||
version-type: "beta" | ||
loaders: | | ||
paper | ||
purpur | ||
game-versions: | | ||
[1.21] | ||
dependencies: | | ||
|
@@ -92,11 +109,12 @@ jobs: | |
arguments: publishPluginPublicationToHangar --scan | ||
build-root-directory: ./plugin | ||
- name: Add Tag | ||
uses: laputansoft/github-tag-action@v4.6 | ||
uses: mathieudutour/github-tag-action@v6.2 | ||
with: | ||
github_token: ${{ env.github-token }} | ||
default_bump: false | ||
tag: "v${{ steps.vars.outputs.version }}" | ||
custom_tag: "${{ steps.vars.outputs.version }}" | ||
release_branches: develop | ||
- name: Notify Discord | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build Typewriter Engine | ||
|
||
on: [workflow_call] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
- name: Build Engine | ||
uses: ./.github/actions/build-engine | ||
- name: Upload Plugin | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Typewriter.jar | ||
path: engine/engine-paper/build/libs/Typewriter.jar |
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,30 @@ | ||
name: Build Specified Extension | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
extension: | ||
required: true | ||
type: string | ||
description: The name of the extension to build | ||
|
||
jobs: | ||
build-adapter: | ||
name: Build ${{ inputs.extension }} Extension | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
- name: Build Adapter | ||
uses: ./.github/actions/build-extension | ||
with: | ||
extension: ${{ inputs.extension }} | ||
- name: Upload Extension | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ inputs.extension }}.jar | ||
path: adapters/${{ inputs.extension }}/build/libs/${{ inputs.extension }}.jar |
Oops, something went wrong.