Skip to content

Publish Release

Publish Release #10

Workflow file for this run

name: Publish Release
on:
create:
tags:
- '\d+\.\d+\.\d+'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 20
java-package: jre
cache: 'gradle'
- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 21
check-latest: true
- run: printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
- run: java --version
- name: Gradle Check
run: ./gradlew check -PtargetJava=21 --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Github Packages
run: ./gradlew -PtargetJava=21 :pagerduty-event-json-iterator-adapter:publish :pagerduty-event-client:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}