Skip to content

Snapshot Release

Snapshot Release #33

name: Snapshot Release
on:
workflow_run:
workflows:
- Test
branches:
- master
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.event == 'push' && github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: Publish package
run: mvn --batch-mode deploy -DreleaseTarget=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}