Skip to content

Update deploy.yml (#125) #1

Update deploy.yml (#125)

Update deploy.yml (#125) #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: Upgrade pip
run: python3 -m pip install --upgrade pip
- name: Install dependencies
run: python3 -m pip install -r requirements.txt
- name: Build
run: |
make html
cp -r images _build/html
cp CNAME _build/html
touch _build/html/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html