From 9259b0f26a7d74290c9254e0208c289850ced16f Mon Sep 17 00:00:00 2001 From: Eric Lunde Date: Mon, 12 Oct 2026 18:20:04 -0400 Subject: [PATCH 1/2] ci: add Javadoc deployment to GitHub Pages and update README badges --- .github/workflows/javadoc-pages.yml | 64 +++++++++++++++++++++++++++++ README.md | 7 ++-- 2 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/javadoc-pages.yml diff --git a/.github/workflows/javadoc-pages.yml b/.github/workflows/javadoc-pages.yml new file mode 100644 index 0000000..dba3cc3 --- /dev/null +++ b/.github/workflows/javadoc-pages.yml @@ -0,0 +1,64 @@ +name: Deploy Javadoc to GitHub Pages + +on: + push: + branches: + - master + tags: + - 'v*.*.*' + release: + types: [published] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + name: Build Javadoc + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Set up Python + uses: actions/setup-python@v7 + with: + python-version: '3.11' + + - name: Set up JDK 17 + uses: actions/setup-java@v6 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + + - name: Build Javadocs + run: | + mvn package -P release -DskipTests --batch-mode + + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Upload Javadoc Pages Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: tsql-scriptdom-core/target/apidocs + + deploy: + name: Deploy to GitHub Pages + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/README.md b/README.md index 3588ec1..3b80d66 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Java 17+](https://img.shields.io/badge/Java-17%2B-blue.svg)](https://openjdk.org/) -[![Maven Central](https://img.shields.io/badge/Maven%20Central-Snapshot-orange.svg)](#) +[![Release](https://img.shields.io/github/v/release/fupacat/tsql-scriptdom-java)](https://github.com/fupacat/tsql-scriptdom-java/releases/latest) +[![Javadoc](https://img.shields.io/badge/Javadoc-GitHub%20Pages-blue.svg)](https://fupacat.github.io/tsql-scriptdom-java/) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fupacat_tsql-scriptdom-java&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=fupacat_tsql-scriptdom-java) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=fupacat_tsql-scriptdom-java&metric=coverage)](https://sonarcloud.io/summary/new_code?id=fupacat_tsql-scriptdom-java) @@ -59,13 +60,13 @@ Add the dependency to your project: io.github.fupacat tsql-scriptdom-core - 0.1.0-SNAPSHOT + 0.1.1 ``` ### Gradle ```groovy -implementation 'io.github.fupacat:tsql-scriptdom-core:0.1.0-SNAPSHOT' +implementation 'io.github.fupacat:tsql-scriptdom-core:0.1.1' ``` > **Note:** `tsql-scriptdom-core` has **zero external transitive dependencies**. The ANTLR runtime is completely shaded and relocated internally (`io.github.fupacat.internal.antlr`) to eliminate classpath collisions. From 1f13c94d826d746bbb4a24eec9d14cb7973180db Mon Sep 17 00:00:00 2001 From: Eric Lunde Date: Mon, 12 Oct 2026 18:23:39 -0400 Subject: [PATCH 2/2] fix(ci): pass GH_REPO to gh CLI in checkout-less PR workflows --- .github/workflows/copilot-ci-failure-handler.yml | 1 + .github/workflows/copilot-review-handler.yml | 1 + .github/workflows/pr-automation.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/copilot-ci-failure-handler.yml b/.github/workflows/copilot-ci-failure-handler.yml index 565d574..5ed9132 100644 --- a/.github/workflows/copilot-ci-failure-handler.yml +++ b/.github/workflows/copilot-ci-failure-handler.yml @@ -22,6 +22,7 @@ jobs: - name: Comment on PR to Summon Copilot env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} WORKFLOW_NAME: ${{ github.event.workflow_run.name }} RUN_URL: ${{ github.event.workflow_run.html_url }} PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }} diff --git a/.github/workflows/copilot-review-handler.yml b/.github/workflows/copilot-review-handler.yml index 8a39861..159ab8c 100644 --- a/.github/workflows/copilot-review-handler.yml +++ b/.github/workflows/copilot-review-handler.yml @@ -19,6 +19,7 @@ jobs: - name: Comment on PR to Summon Copilot env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} REVIEWER: ${{ github.event.review.user.login }} run: | diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index 2c42484..f0ca68d 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -45,6 +45,7 @@ jobs: contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | echo "Enabling auto-merge for PR #${PR_NUMBER}..."