Skip to content

ci: use public Sprocket action (#180) #85

ci: use public Sprocket action (#180)

ci: use public Sprocket action (#180) #85

Workflow file for this run

name: Workflows CD
on:
push:
branches:
- main
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wdldoc~=1.7.0
python3 -m pip install mkdocs
- name: Prepare Docs
run: cp README.md docs/index.md && sed -i.bak 's/\.\/docs/\.\//g' docs/index.md
- name: Build Docs
run: |
wdldoc -o docs .
mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./site