Skip to content

Update build_and_deploy.yml [build] #13

Update build_and_deploy.yml [build]

Update build_and_deploy.yml [build] #13

name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, '[build]') }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install -U pip
pip install setuptools wheel
- name: Install StuffPages
run: |
python -m pip install stuffpages
- name: Build
run: |
stuffpages build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/
target-folder: ./