Modify gradle build to sign only release version and publish to central #249
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tanzawa-CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
timeout-minutes: 30 | |
defaults: | |
run: | |
shell: bash | |
env: | |
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | |
steps: | |
- name: Setup_Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GHA_PAT }} | |
- name: Assemble | |
run: | | |
./gradlew -i tanzawa-core:showTsubakuroManifest clean assemble | |
- name: Check | |
run: | | |
./gradlew -i check --continue | |
- name: Verify | |
uses: project-tsurugi/tsurugi-annotations-action@v1 | |
if: always() | |
with: | |
junit_input: '**/build/test-results/**/TEST-*.xml' | |
spotbugs_input: '**/build/reports/spotbugs/main/*.xml' | |
checkstyle_input: '**/build/reports/checkstyle/main.xml' | |
Publish: | |
uses: ./.github/workflows/ci-publish.yml | |
if: github.repository_owner == 'project-tsurugi' && (contains(github.ref, '/tags/') || contains(github.ref, '/heads/master')) | |
needs: Build | |
secrets: inherit | |
permissions: | |
contents: write |