Skip to content

feat sync script

feat sync script #1

Workflow file for this run

name: sync
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install dependencies
run: pip install -r scripts/requirements.txt
- name: Sync
run: python scripts/summon.py
# - name: deploy
# run: |
# cd output
# [ -f 404.html ] || ln -s index.html 404.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4