Skip to content

Publish package to GitHub Packages #6

Publish package to GitHub Packages

Publish package to GitHub Packages #6

Workflow file for this run

name: Publish package to GitHub Packages
on:
workflow_dispatch:
jobs:
publish:
runs-on: macos-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: publishAllPublicationsToGitHubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}