fix: Add path filters and fix env placement in docs workflow

- Add path filters to only trigger on docs/** changes
- Remove incorrectly placed GH_TOKEN env variable
- This should make the workflow trigger properly
This commit is contained in:
Lea Anthony 2025-11-23 22:40:21 +11:00
commit af2f054813

View file

@ -2,9 +2,12 @@ name: Deploy to GitHub Pages
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branchs name
# Using a different branch name? Replace `main` with your branch's name
push:
branches: [v3-alpha]
paths:
- 'docs/**'
- '.github/workflows/v3-docs.yml'
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
@ -42,6 +45,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
uses: actions/deploy-pages@v4