Skip to content

Raised the release CI job's Java version to 17 as this is the min req… #14

Raised the release CI job's Java version to 17 as this is the min req…

Raised the release CI job's Java version to 17 as this is the min req… #14

name: Publish Snapshots
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
publish-core-snapshot:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3
with:
validate-wrappers: true
- name: Set snapshot version
run: ./gradlew set-snapshot-version --stacktrace
- name: Publish core package
id: publish_package
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}