fmartingr.com/.github/workflows/deploy.yml

33 lines
812 B
YAML

name: Build pages
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install lektor
run: |
pipx install lektor
- name: Build site
run: make build
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3.9.3
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