Skip to content

Publish package to GitHub Packages #13

Publish package to GitHub Packages

Publish package to GitHub Packages #13

Workflow file for this run

name: Publish package to GitHub Packages
on:
release:
types: [ published ]
workflow_run:
workflows: [ Release ]
types: [ completed ]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Publish package
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}