Pull upstream (#73) #65
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: Build and deploy Javadoc | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
cache: gradle | |
java-version: 21 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build javadoc | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
./gradlew javadoc | |
- name: Deploy javadoc to its assigned branch | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: javadoc | |
FOLDER: build/docs/javadoc | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |