Skip to content

Commit

Permalink
Add GitHub Actions task to generate the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Aug 15, 2023
1 parent a752fbb commit 3f31707
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate static site

on:
workflow_dispatch:
push:
branches:
- main
# schedule:
# - cron: '0 8 * * *'

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install markdown2
- name: Generate docs
run: python -u generate_docs.py
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit 3f31707

Please sign in to comment.