Skip to content

Publish to GitHub Packages #10

Publish to GitHub Packages

Publish to GitHub Packages #10

Workflow file for this run

name: Publish to GitHub Packages
on:
# Publishes packages on release (the Rhino version should not be
# changed to '-SNAPSHOT' before creating the release in Github).
release:
types: [published]
# 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '11'
distribution: 'adopt'
server-id: github
settings-path: ${{ github.workspace }}
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publish