Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Archive repository

Archive repository #12

Workflow file for this run

name: github pages
permissions:
contents: read
pages: write
id-token: write
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- name: Build mdBook
run: mdbook build
- name: Upload artifacts
uses: actions/upload-pages-artifact@v1.0.7
with:
path: book/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1