fix typo #55
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
# 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: | |
- master | |
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/[email protected] | |
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/[email protected] | |
with: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
REPOSITORY_NAME: siongui/siongui.github.io | |
BRANCH: master | |
FOLDER: output | |
CLEAN: true |