Skip to content

Update build-deploy.yml #2

Update build-deploy.yml

Update build-deploy.yml #2

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- src
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source branch
uses: actions/checkout@v4
with:
ref: src
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install "Nikola[extras]"
- name: Build site
run: |
nikola build
- name: Deploy to master branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: master
force_orphan: true