Skip to content

Publish to GitHub Packages #29

Publish to GitHub Packages

Publish to GitHub Packages #29

name: Publish to GitHub Packages
on:
# Run every Saturday morning
schedule:
- cron: 14 12 * * 6
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '21'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_SIGNINGKEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
run: ./gradlew publish