Skip to content

Update plugin org.ajoberstar.git-publish to v4 #100

Update plugin org.ajoberstar.git-publish to v4

Update plugin org.ajoberstar.git-publish to v4 #100

Workflow file for this run

name: CI
on:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
arguments: --stacktrace build
publish_artifacts:
name: Publish Snapshot Artifacts
needs: gradle
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'apiguardian-team/apiguardian' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main')
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
with:
java-version: 11
- name: 'Publish'
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew publish -x check
update_documentation:
name: Update Snapshot Documentation
needs: gradle
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'apiguardian-team/apiguardian' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
with:
java-version: 11
- name: 'Upload Documentation'
env:
GRGIT_USER: ${{ secrets.GH_TOKEN }}
run: ./gradlew gitPublishPush -x check