Skip to content

jvm.md

jvm.md #674

Workflow file for this run

# https://aschmelyun.com/blog/using-docker-run-inside-of-github-actions/
name: GitHub Pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Build
uses: addnab/docker-run-action@v3
with:
image: aisuhua/mkdocs-material:latest
options: -v ${{ github.workspace }}:/docs
run: |
chown -R 0:0 /docs
cd /docs
mkdocs build --clean
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site