From 0a57f639eaa3059720e4ccdebfdb63a94995ada8 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Mon, 19 Jan 2026 21:01:08 +0100 Subject: [PATCH 1/2] feat: add player login (#5) * feat: implement player login * chore: update gradle plugin to conventions plugin * refactor: remove lots of duplicated code which is already present from player.proto * fix: align plugin name to naming conventions * fix: Register missing providers manually * fix: use full kubernetes url * fix: improve error handling * feat: use envs for configuring plugin * feat: use grpc-conventions plugin --------- Co-authored-by: ItsKev --- .github/workflows/ci.yml | 41 ++++---------------------- .github/workflows/labels.yml | 20 +++++++++++++ .github/workflows/release-please.yml | 16 +++++++++++ .github/workflows/release.yml | 43 ++++++++++++++++++++++++++++ .release-please-manifest.json | 3 ++ release-please-config.json | 7 +++++ 6 files changed, 94 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/labels.yml create mode 100644 .github/workflows/release-please.yml create mode 100644 .github/workflows/release.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 978b5d5..a3e29f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,42 +1,11 @@ -name: CI +name: Java Build on: push: - branches: - - main + branches: [main] pull_request: - workflow_dispatch: - -permissions: - contents: read - packages: read + branches: [main] jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out - uses: actions/checkout@v6 - - - name: Set up Java - uses: actions/setup-java@v5 - with: - distribution: "temurin" - java-version: "25" - - - name: Set up Gradle - uses: gradle/actions/setup-gradle@v5 - - - name: Configure GitHub Packages credentials - run: | - mkdir -p ~/.gradle - { - echo "github.user=${{ github.actor }}" - echo "github.token=${{ secrets.GITHUB_TOKEN }}" - } > ~/.gradle/gradle.properties - - - name: Build - run: ./gradlew build --exclude-task test - - - name: Test - run: ./gradlew test + reusable: + uses: groundsgg/.github/.github/workflows/gradle-ci.yml@main diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 0000000..76f65e5 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,20 @@ +name: Label Sync + +on: + push: + branches: + - 'main' + paths: + - '.github/workflows/labels.yml' + pull_request: + paths: + - '.github/workflows/labels.yml' + workflow_dispatch: # Allow manual triggering + +permissions: + contents: read + issues: write + +jobs: + reusable: + uses: groundsgg/.github/.github/workflows/label-sync.yml@main diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..fb13169 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,16 @@ +name: Release Please + +on: + push: + branches: [main] + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + reusable: + uses: groundsgg/.github/.github/workflows/release-please.yml@main + secrets: + RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a7058c4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: Release + +on: + push: + tags: + - "*" + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + packages: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Java + uses: actions/setup-java@v5 + with: + distribution: "temurin" + java-version: "25" + + - name: Configure GitHub Packages credentials + run: | + mkdir -p ~/.gradle + { + echo "github.user=${{ github.actor }}" + echo "github.token=${{ secrets.GITHUB_TOKEN }}" + } > ~/.gradle/gradle.properties + + - name: Build + run: ./gradlew build -Pversion=${{ github.ref_name }} + + - name: Publish to GitHub Packages + run: ./gradlew :velocity:publish -Pversion=${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish release + uses: softprops/action-gh-release@v2 + with: + files: velocity/build/libs/*.jar diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..af7ee6f --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..b7abed2 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,7 @@ +{ + "release-type": "go", + "include-component-in-tag": false, + "packages": { + ".": {} + } +} From 8eae1c53172058e64ff533eb354b0395556b8a00 Mon Sep 17 00:00:00 2001 From: Lukas Jost Date: Mon, 19 Jan 2026 21:28:22 +0100 Subject: [PATCH 2/2] chore: use reusable workflow --- .github/workflows/release.yml | 41 +++++------------------------------ 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7058c4..5b0531c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,39 +5,10 @@ on: tags: - "*" -jobs: - release: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up Java - uses: actions/setup-java@v5 - with: - distribution: "temurin" - java-version: "25" - - - name: Configure GitHub Packages credentials - run: | - mkdir -p ~/.gradle - { - echo "github.user=${{ github.actor }}" - echo "github.token=${{ secrets.GITHUB_TOKEN }}" - } > ~/.gradle/gradle.properties +permissions: + contents: write + packages: write - - name: Build - run: ./gradlew build -Pversion=${{ github.ref_name }} - - - name: Publish to GitHub Packages - run: ./gradlew :velocity:publish -Pversion=${{ github.ref_name }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish release - uses: softprops/action-gh-release@v2 - with: - files: velocity/build/libs/*.jar +jobs: + reusable: + uses: groundsgg/.github/.github/workflows/gradle-publish.yml@main