add pycamp sapporo 2nd, pycamp aichi 3rd, and pycamp yamagata 3rd #36
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
name: Publish on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -r requirements.in | |
- name: Build document | |
run: | | |
make singlehtml | |
- name: Remove redundant files | |
run: | | |
cd build/singlehtml | |
rm .buildinfo objects.inv | |
cd _static | |
rm -r cover.png impressions/ photos/ profiles/ | |
- name: Publish on GitHub Pages | |
uses: ftnext/[email protected] | |
with: | |
build_dir: build/singlehtml | |
github_token: ${{ secrets.GITHUB_TOKEN }} |