Skip to content

initial commit for CD #1

initial commit for CD

initial commit for CD #1

Workflow file for this run

name: ci
on:
push:
branches:
- master
workflow_dispatch:
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: pip install mkdocs-roamlinks-plugin
- run: pip install mkdocs-rss-plugin
- run: pip install mkdocs-git-revision-date-localized-plugin
# - run: pip install mkdocs-mermaid2-plugin
- run: mkdocs build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./static_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4