31 lines
782 B
YAML
31 lines
782 B
YAML
name: Build pages
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.10"
|
|
- name: Install python dependencies
|
|
run: |
|
|
python -m pip install --upgrade poetry
|
|
poetry install
|
|
- name: Build site
|
|
run: make build
|
|
- name: Publish to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v3.6.1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_branch: gh-pages
|
|
publish_dir: public
|
|
force_orphan: true
|
|
user_name: Felipe M.
|
|
user_email: me@fmartingr.com
|
|
cname: fmartingr.com
|