Merge pull request #49 from josephearl/dependabot/gradle/org.junit.ju… #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |