From 384bf99336dbd469fb0f7fc3ca8b9a28fd50368b Mon Sep 17 00:00:00 2001 From: SleepyPop <81194303+SleepyPopp@users.noreply.github.com> Date: Fri, 26 Jun 2026 02:34:58 -0400 Subject: [PATCH 1/6] Add artifact archiving for Floodgate databases --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71bfd8459..9d92d66fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,6 +73,30 @@ jobs: path: velocity/build/libs/floodgate-velocity.jar if-no-files-found: error + - name: Archive artifacts (Floodgate Mongo Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate Mongo Database + path: database/mongo/build/libs/floodgate-mongo-database.jar + if-no-files-found: error + + - name: Archive artifacts (Floodgate MySQL Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate MySQL Database + path: database/mysql/build/libs/floodgate-mysql-database.jar + if-no-files-found: error + + - name: Archive artifacts (Floodgate SQLite Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate SQLite Database + path: database/sqlite/build/libs/floodgate-sqlite-database.jar + if-no-files-found: error + - name: Publish to Maven Repository if: ${{ github.repository == 'GeyserMC/Floodgate' }} run: ./gradlew publish From 33f4edc19a5a3799767b311253e7b2a3121af24a Mon Sep 17 00:00:00 2001 From: SleepyPop <81194303+SleepyPopp@users.noreply.github.com> Date: Fri, 26 Jun 2026 02:41:35 -0400 Subject: [PATCH 2/6] Add artifact archiving for Floodgate databases --- .github/workflows/pullrequest.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 8d59fecfd..a5e4906d0 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -62,3 +62,27 @@ jobs: name: Floodgate Velocity path: velocity/build/libs/floodgate-velocity.jar if-no-files-found: error + + - name: Archive artifacts (Floodgate Mongo Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate Mongo Database + path: database/mongo/build/libs/floodgate-mongo-database.jar + if-no-files-found: error + + - name: Archive artifacts (Floodgate MySQL Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate MySQL Database + path: database/mysql/build/libs/floodgate-mysql-database.jar + if-no-files-found: error + + - name: Archive artifacts (Floodgate SQLite Database) + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 + if: success() + with: + name: Floodgate SQLite Database + path: database/sqlite/build/libs/floodgate-sqlite-database.jar + if-no-files-found: error From 2f4012ed1b4e24e3e1ed5649cc6e7ce1ee8103b4 Mon Sep 17 00:00:00 2001 From: SleepyPop <81194303+SleepyPopp@users.noreply.github.com> Date: Fri, 26 Jun 2026 02:50:32 -0400 Subject: [PATCH 3/6] Update build.yml --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d92d66fd..f1bd46772 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,6 +123,9 @@ jobs: bungee:bungee/build/libs/floodgate-bungee.jar spigot:spigot/build/libs/floodgate-spigot.jar velocity:velocity/build/libs/floodgate-velocity.jar + mongo:database/mongo/build/libs/floodgate-mongo-database.jar + mysql:database/mysql/build/libs/floodgate-mysql-database.jar + sqlite:database/sqlite/build/libs/floodgate-sqlite-database.jar releaseEnabled: false saveMetadata: true releaseProject: 'floodgate' @@ -139,6 +142,9 @@ jobs: bungee/build/libs/floodgate-bungee.jar spigot/build/libs/floodgate-spigot.jar velocity/build/libs/floodgate-velocity.jar + mongo:database/mongo/build/libs/floodgate-mongo-database.jar + mysql:database/mysql/build/libs/floodgate-mysql-database.jar + sqlite:database/sqlite/build/libs/floodgate-sqlite-database.jar - name: Notify Discord if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Floodgate' }} From 21897c2e6f45b141884a541176e343dc9ea37332 Mon Sep 17 00:00:00 2001 From: SleepyPop <81194303+SleepyPopp@users.noreply.github.com> Date: Fri, 26 Jun 2026 03:49:05 -0400 Subject: [PATCH 4/6] Use upload-multi-artifact instead --- .github/workflows/build.yml | 55 +++++-------------------------- .github/workflows/pullrequest.yml | 55 +++++-------------------------- 2 files changed, 18 insertions(+), 92 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1bd46772..af8a3896e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,54 +48,17 @@ jobs: env: BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }} - - name: Archive artifacts (Floodgate Bungee) - # See https://github.com/actions/upload-artifact/commits - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + - name: Archive Artifacts + uses: GeyserMC/actions/upload-multi-artifact@master if: success() with: - name: Floodgate Bungee - path: bungee/build/libs/floodgate-bungee.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Spigot) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Spigot - path: spigot/build/libs/floodgate-spigot.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Velocity) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Velocity - path: velocity/build/libs/floodgate-velocity.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Mongo Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Mongo Database - path: database/mongo/build/libs/floodgate-mongo-database.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate MySQL Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate MySQL Database - path: database/mysql/build/libs/floodgate-mysql-database.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate SQLite Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate SQLite Database - path: database/sqlite/build/libs/floodgate-sqlite-database.jar - if-no-files-found: error + artifacts: | + bungee/build/libs/floodgate-bungee.jar + spigot/build/libs/floodgate-spigot.jar + velocity/build/libs/floodgate-velocity.jar + database/mongo/build/libs/floodgate-mongo-database.jar + database/mysql/build/libs/floodgate-mysql-database.jar + database/sqlite/build/libs/floodgate-sqlite-database.jar - name: Publish to Maven Repository if: ${{ github.repository == 'GeyserMC/Floodgate' }} diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index a5e4906d0..050f3436e 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -38,51 +38,14 @@ jobs: - name: Build Floodgate run: ./gradlew build - - name: Archive artifacts (Floodgate Bungee) - # See https://github.com/actions/upload-artifact/commits - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + - name: Archive Artifacts + uses: GeyserMC/actions/upload-multi-artifact@master if: success() with: - name: Floodgate Bungee - path: bungee/build/libs/floodgate-bungee.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Spigot) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Spigot - path: spigot/build/libs/floodgate-spigot.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Velocity) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Velocity - path: velocity/build/libs/floodgate-velocity.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate Mongo Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate Mongo Database - path: database/mongo/build/libs/floodgate-mongo-database.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate MySQL Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate MySQL Database - path: database/mysql/build/libs/floodgate-mysql-database.jar - if-no-files-found: error - - - name: Archive artifacts (Floodgate SQLite Database) - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 - if: success() - with: - name: Floodgate SQLite Database - path: database/sqlite/build/libs/floodgate-sqlite-database.jar - if-no-files-found: error + artifacts: | + bungee/build/libs/floodgate-bungee.jar + spigot/build/libs/floodgate-spigot.jar + velocity/build/libs/floodgate-velocity.jar + database/mongo/build/libs/floodgate-mongo-database.jar + database/mysql/build/libs/floodgate-mysql-database.jar + database/sqlite/build/libs/floodgate-sqlite-database.jar \ No newline at end of file From 75adcd7f6a17c558aeaac369543d478bcfb0fb9f Mon Sep 17 00:00:00 2001 From: Auri Date: Fri, 26 Jun 2026 10:27:20 +0100 Subject: [PATCH 5/6] Seperate DBs into a different project release --- .github/workflows/build.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af8a3896e..c8f46fdad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,9 +86,6 @@ jobs: bungee:bungee/build/libs/floodgate-bungee.jar spigot:spigot/build/libs/floodgate-spigot.jar velocity:velocity/build/libs/floodgate-velocity.jar - mongo:database/mongo/build/libs/floodgate-mongo-database.jar - mysql:database/mysql/build/libs/floodgate-mysql-database.jar - sqlite:database/sqlite/build/libs/floodgate-sqlite-database.jar releaseEnabled: false saveMetadata: true releaseProject: 'floodgate' @@ -105,9 +102,35 @@ jobs: bungee/build/libs/floodgate-bungee.jar spigot/build/libs/floodgate-spigot.jar velocity/build/libs/floodgate-velocity.jar + + - name: Get DB Release Metadata + if: ${{ success() && github.repository == 'GeyserMC/Floodgate' && github.ref_name == 'master' }} + uses: GeyserMC/actions/release@master + id: metadata_db + with: + appID: ${{ secrets.RELEASE_APP_ID }} + appPrivateKey: ${{ secrets.RELEASE_APP_PK }} + files: | mongo:database/mongo/build/libs/floodgate-mongo-database.jar mysql:database/mysql/build/libs/floodgate-mysql-database.jar sqlite:database/sqlite/build/libs/floodgate-sqlite-database.jar + releaseEnabled: false + saveMetadata: true + releaseProject: 'floodgate-db' + releaseVersion: ${{ steps.get-version.outputs.VERSION }} + + - name: Publish DBs to Downloads API + if: ${{ success() && github.ref_name == 'master' && github.repository == 'GeyserMC/Floodgate' }} + uses: GeyserMC/actions/upload-release@master + with: + username: ${{ vars.DOWNLOADS_USERNAME }} + privateKey: ${{ secrets.DOWNLOADS_PRIVATE_KEY }} + host: ${{ secrets.DOWNLOADS_SERVER_IP }} + metadata: metadata_db.json + files: | + database/mongo/build/libs/floodgate-mongo-database.jar + database/mysql/build/libs/floodgate-mysql-database.jar + database/sqlite/build/libs/floodgate-sqlite-database.jar - name: Notify Discord if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Floodgate' }} From 96df827d8e94bf53f6191529705e4d57efc73cc8 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Sun, 28 Jun 2026 10:25:45 +0200 Subject: [PATCH 6/6] Renamed mongo to mongodb --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8f46fdad..36171e483 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -111,7 +111,7 @@ jobs: appID: ${{ secrets.RELEASE_APP_ID }} appPrivateKey: ${{ secrets.RELEASE_APP_PK }} files: | - mongo:database/mongo/build/libs/floodgate-mongo-database.jar + mongodb:database/mongo/build/libs/floodgate-mongo-database.jar mysql:database/mysql/build/libs/floodgate-mysql-database.jar sqlite:database/sqlite/build/libs/floodgate-sqlite-database.jar releaseEnabled: false