ci: provision Java for signed releases
Signed Release / release (push) Successful in 17m17s

This commit is contained in:
Qiufeng
2026-08-04 17:18:25 +08:00
parent 99b8126b59
commit e295ad8b96
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -25,6 +25,13 @@ jobs:
with:
fetch-depth: 0
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
cache: gradle
- name: Build, sign, and publish release
shell: bash
run: |
+2
View File
@@ -681,6 +681,8 @@ test_release_workflow_uses_scoped_job_token() (
grep -Fqx ' releases: write' "$workflow"
grep -Fq 'GITEA_BASE_URL: ${{ github.server_url }}' "$workflow"
grep -Fq 'GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}' "$workflow"
grep -Fq 'uses: actions/setup-java@v4' "$workflow"
grep -Fq 'java-version: "17"' "$workflow"
! grep -Fq 'RELEASE_GITEA_TOKEN' "$workflow"
! grep -Fq 'vars.GITEA_BASE_URL' "$workflow"
)