update 波逸提(《單墮》) 十二 - 努力 #621
This file contains hidden or 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
# https://nimbinatus.com/2019/09/28/pelican-and-ghpages/ | |
# https://github.com/nimbinatus/nimbinatus.github.io/blob/source/.github/workflows/pelican.yml | |
# https://github.com/JamesIves/github-pages-deploy-action | |
# https://github.com/actions/setup-python | |
name: Pelican site CI | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- main | |
# For JamesIves/github-pages-deploy-action to commit to gh-pages branch | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install language packs | |
run: | | |
sudo apt-get update | |
sudo apt-get install language-pack-en language-pack-zh-hant language-pack-th | |
- uses: actions/checkout@v2.3.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build site | |
run: | | |
make download | |
make publish | |
- name: Add nojekyll | |
run: | | |
touch ./output/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
FOLDER: output |