Skip to content

Generate and Deploy #20

Generate and Deploy

Generate and Deploy #20

name: Generate and Deploy
on:
workflow_dispatch:
jobs:
generate-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Generate 🏭
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp -a _skeleton/ _generate/
pip3 install -U 'PyGithub==1.*'
./generate.py _generate/
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_generate