Skip to content

Commit

Permalink
blasters module, entrypoint module, temp remove upload script from CI…
Browse files Browse the repository at this point in the history
… pipeline
  • Loading branch information
parzivail committed Oct 16, 2024
1 parent 183dce8 commit 1b9b371
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 34 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ jobs:
- name: build
id: gradle
run: ./gradlew --stacktrace --parallel clean build
- name: Get Id Token
if: github.ref == 'refs/heads/master'
uses: actions/github-script@v7
id: idtoken
with:
script: |
let id_token = await core.getIDToken("https://mc.pswg.dev")
core.setOutput('id_token', id_token)
- name: upload
if: always() && github.ref == 'refs/heads/master' && (steps.gradle.outcome == 'success' || steps.gradle.outcome == 'failure')
continue-on-error: true
run: |
pip install -r scripts/requirements.txt
mkdir -p projects/pswg/build/libs
cd projects/pswg/build/libs
python ../../../../scripts/upload_dev.py --token ${{ steps.idtoken.outputs.id_token }} --result ${{ steps.gradle.outcome }} --webhook ${{ secrets.DISCORD_DEV_FEED_WEBHOOK }} --webhook ${{ secrets.DISCORD_RCOE_WEBHOOK }} --serverupdate ${{ secrets.SERVER_UPDATER }}
env:
BUILD_NUMBER: ${{ github.run_number }}
# - name: Get Id Token
# if: github.ref == 'refs/heads/master'
# uses: actions/github-script@v7
# id: idtoken
# with:
# script: |
# let id_token = await core.getIDToken("https://mc.pswg.dev")
# core.setOutput('id_token', id_token)
# - name: upload
# if: always() && github.ref == 'refs/heads/master' && (steps.gradle.outcome == 'success' || steps.gradle.outcome == 'failure')
# continue-on-error: true
# run: |
# pip install -r scripts/requirements.txt
# mkdir -p projects/pswg/build/libs
# cd projects/pswg/build/libs
# python ../../../../scripts/upload_dev.py --token ${{ steps.idtoken.outputs.id_token }} --result ${{ steps.gradle.outcome }} --webhook ${{ secrets.DISCORD_DEV_FEED_WEBHOOK }} --webhook ${{ secrets.DISCORD_RCOE_WEBHOOK }} --serverupdate ${{ secrets.SERVER_UPDATER }}
# env:
# BUILD_NUMBER: ${{ github.run_number }}
14 changes: 0 additions & 14 deletions projects/pswg/project.gradle

This file was deleted.

Empty file removed projects/pswg/src/client/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion projects/pswg_blasters/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
],
"depends": {
"pswg_core": "*"
"pswg": "*"
},
"custom": {
"modmenu": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package dev.pswg;

import dev.pswg.api.GalaxiesClientAddon;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.loader.api.FabricLoader;

/**
* The main entrypoint for PSWG client-side registration
Expand All @@ -10,6 +12,9 @@ public class GalaxiesClient implements ClientModInitializer
@Override
public void onInitializeClient()
{
Galaxies.LOGGER.info("Loading PSWG modules and addons via pswg-client-addon");
FabricLoader.getInstance().invokeEntrypoints("pswg-client-addon", GalaxiesClientAddon.class, GalaxiesClientAddon::onGalaxiesClientReady);

Galaxies.LOGGER.info("Galaxies client initialized");
}
}
3 changes: 3 additions & 0 deletions projects/pswg_entrypoint/project.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
api(project(path: ":projects:pswg_blasters", configuration: "namedElements"))
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ include(":projects:pswg_core")
include(":projects:pswg_blasters")

// The dummy entrypoint module that depends on all other modules
include(":projects:pswg")
include(":projects:pswg_entrypoint")

// The Aurek Tooklkit, a suite of ingame editors to add and edit base and addon features
// include(":projects:toolkit")
Expand Down

0 comments on commit 1b9b371

Please sign in to comment.