完成 95,重新完成96 #22
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up JDK ☕️ | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '21' | |
cache: 'maven' | |
- name: Install Graphviz 🐰 | |
run: | | |
sudo apt update -y -m | |
sudo apt install -y graphviz | |
- name: Build 🔧 | |
run: mvn clean package | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: target/docs/multipage # The folder the action should deploy. | |
single-commit: true |