Skip to content

Publish package to the GitHub Package Repository #1

Publish package to the GitHub Package Repository

Publish package to the GitHub Package Repository #1

name: Publish package to the GitHub Package Repository
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish packages
run: chmod +x ./gradlew && ./gradlew publishAllPublicationsToGitHubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}