mirror of
https://github.com/dandavison/delta.git
synced 2026-10-09 18:49:46 +02:00
58 lines
1.1 KiB
YAML
58 lines
1.1 KiB
YAML
name: Deploy Manual
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "manual/**"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: read
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- run: cargo doc --no-deps
|
|
|
|
- name: Setup mdBook
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: mdbook@0.4.14
|
|
|
|
- name: Build manual
|
|
run: mdbook build
|
|
working-directory: manual
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: manual/book
|
|
|
|
deploy:
|
|
needs: build
|
|
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Configure GitHub Pages
|
|
uses: actions/configure-pages@v3
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v2
|