Skip to content

Merge pull request #4 from kendryte/update_template #28

Merge pull request #4 from kendryte/update_template

Merge pull request #4 from kendryte/update_template #28

Workflow file for this run

name: Build and Deploy Documents.
on:
push:
branches: [ "main" ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Requirements.
run: pip3 install sphinx==5.3.0 sphinx_multiversion sphinx_book_theme sphinx_copybutton sphinxcontrib-mermaid myst-parser
- name: Build
run: |
git fetch --unshallow # fetch all history
make mhtml
find build -type d -name ".doctrees" | xargs rm -rf
find build -type f -name ".buildinfo" | xargs rm -rf
find build -type f -name "objects.inv" | xargs rm -rf
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'build'
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/main
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1