mirror of
https://github.com/Rate-Limiting-Nullifier/rln-docs.git
synced 2026-01-10 07:48:01 -05:00
Create main.yml
This commit is contained in:
33
.github/workflows/main.yml
vendored
Normal file
33
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: mdbook -> gh pages
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches:
|
||||
# - prod
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./packages/rln-documentation
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: jontze/action-mdbook@v1
|
||||
with:
|
||||
token: ${{secrets.GITHUB_TOKEN}}
|
||||
# Optional Plugins have to be enabled
|
||||
use-linkcheck: true
|
||||
use-mermaid: true
|
||||
use-toc: true
|
||||
use-opengh: true
|
||||
- run: mdbook build
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./packages/rln-documentation/book
|
||||
Reference in New Issue
Block a user