Skip to content

Merge pull request #51 from josephearl/dependabot/gradle/com.github.s… #38

Merge pull request #51 from josephearl/dependabot/gradle/com.github.s…

Merge pull request #51 from josephearl/dependabot/gradle/com.github.s… #38

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Publish package
uses: gradle/actions/setup-gradle@v3
with:
arguments: publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish documentation
run: |
git config user.email "[email protected]"
git config user.name "ci"
git fetch origin gh-pages
git checkout gh-pages
cp -r build/docs/javadoc/* .
git add .
git commit -m "Update documentation" && git push || true