mirror of
https://github.com/haraldh/chainerror.git
synced 2025-04-19 06:12:52 +02:00
The ubuntu-18.04 environment is deprecated. Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
31 lines
561 B
YAML
31 lines
561 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build mdbook
|
|
run: cargo install mdbook
|
|
|
|
- name: Build cargo-readme
|
|
run: cargo install cargo-readme
|
|
|
|
- name: Build README.md
|
|
run: cargo readme > README.md
|
|
|
|
- name: Build
|
|
run: mdbook build
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
publish_dir: ./book
|