Set version to 1.18.2 #52
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: Publish Pages | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Create javadoc with Gradle Wrapper | |
run: ./gradlew javadoc | |
- name: Create Site Artifact | |
run: | | |
mkdir site | |
mv build/docs/javadoc site/ | |
- name: Upload Site Artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'site' | |
pages: | |
runs-on: ubuntu-latest | |
needs: publish | |
if: github.event_name == 'push' | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |