Skip to content

Commit

Permalink
Extension Update
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Sep 4, 2024
1 parent 5558a0b commit 1879f44
Show file tree
Hide file tree
Showing 1,091 changed files with 28,299 additions and 28,794 deletions.
22 changes: 0 additions & 22 deletions .github/actions/build-adapter/action.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/actions/build-engine/action.yml
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

22 changes: 22 additions & 0 deletions .github/actions/build-extension/action.yml
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

37 changes: 0 additions & 37 deletions .github/actions/build-plugin/action.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/build-adapter.yml

This file was deleted.

84 changes: 51 additions & 33 deletions .github/workflows/build-development-jars-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: self-hosted
runs-on: arc-runner-set
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build-engine.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/build-extension.yml
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
Loading

0 comments on commit 1879f44

Please sign in to comment.