Deployment #1032
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Daily workflow for deploying the documentation to GitHub pages. | |
name: Deployment | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '00 2 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: github-pages | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2.3.1 | |
with: | |
python-version: 3.9 | |
- name: Install python dependencies | |
run: pip -q install mkdocs mkdocs-windmill | |
- name: Run build script | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
run: sh build.sh |