Build and deploy the website #4670
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
on: | |
push: | |
branches: ["main"] | |
schedule: | |
- cron: 0 0/6 * * * | |
name: Build and deploy the website | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Generate API | |
run: | | |
pip install toml | |
make scripts | |
- name: Generate pages | |
run: | | |
make pages | |
- name: Build and deploy | |
uses: shalzz/zola-deploy-action@master | |
env: | |
PAGES_BRANCH: gh-pages | |
TOKEN: ${{ secrets.TOKEN }} |