Skip to content

Build

Build #344

Workflow file for this run

name: Build
on:
push:
branches:
- main
schedule:
# This workflow will run every day at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
- run: python build.py
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs
- name: Commit and push changes
run: |
git config --local user.name "github-actions"
git config --local user.email "puyu@puyuwang.org"
git add docs/
git commit -m "Auto-update folder docs" || echo "No changes to commit"
git push