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..5b0531c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +name: Release + +on: + push: + tags: + - "*" + +permissions: + contents: write + packages: write + +jobs: + reusable: + uses: groundsgg/.github/.github/workflows/gradle-publish.yml@main 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": { + ".": {} + } +}