Skip to content

Publish Release

Publish Release #14

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/actions/wrapper-validation@v3
- uses: oracle-actions/setup-java@v1
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}
with:
website: jdk.java.net
release: ${{ vars.GRADLE_JAVA_VERSION }}
- run: |
printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
java --version
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}
- uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ vars.JAVA_VERSION }}
- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
if: ${{ vars.GRADLE_JAVA_VERSION == vars.JAVA_VERSION }}
- name: Github Packages
run: |
printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties
java --version
./gradlew --stacktrace --no-daemon -PtargetJava=${{ vars.JAVA_VERSION }} check :pagerduty-event-json-iterator-adapter:publish :pagerduty-event-client:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}