ci(deps): bump peter-evans/create-pull-request from 7.0.5 to 7.0.6 (#50) #44
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: Deploy Maven site | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
JAVA_VERSION: '21' | |
DISTRIBUTION: 'temurin' | |
jobs: | |
build_docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/setup-java?tab=readme-ov-file#caching-packages-dependencies | |
- name: ☕ Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: ${{ env.DISTRIBUTION }} | |
cache: 'maven' | |
server-id: github | |
# Note: scm-publish:publish-scm isn't working here | |
- name: 📦 Build website | |
run: mvn -P github clean install site site:stage | |
- name: 🤖 Deploy website | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/staging |