Skip to content

4.2.1

4.2.1 #6

Workflow file for this run

# This workflow will build a package using Gradle and then publish it to GitHub
# packages when a release is published
name: Gradle Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Gradle
run: ./gradlew build -x test
- name: Publish to GitHub Packages
run: >-
./gradlew publish -PmavenReleaseRepoUrl="https://maven.pkg.github.com/css4j/xml-dtd"
-PmavenRepoUsername=${{ github.actor }} -PmavenRepoPassword=${{ secrets.GITHUB_TOKEN }}