Skip to content

Commit f6390cc

Browse files
authored
Merge pull request #6 from armish/claude/setup-gh-pages-deploy-011CUrjhDdR4i4HtrXG7KfG9
Set up automated GitHub Pages deployment
2 parents b5003d5 + 5545a2c commit f6390cc

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/pkgdown.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
#
4+
# This workflow automatically builds and deploys the pkgdown website to GitHub Pages.
5+
#
6+
# Triggers:
7+
# - Push to main/master: Builds and deploys to gh-pages branch
8+
# - Pull requests: Builds only (no deployment, for testing)
9+
# - Releases: Builds and deploys
10+
# - Manual dispatch: Can be triggered manually from Actions tab
11+
#
12+
# The gh-pages branch will be automatically created on the first successful deployment.
313
on:
414
push:
515
branches: [main, master]
16+
paths:
17+
- 'R/**'
18+
- 'man/**'
19+
- 'vignettes/**'
20+
- '_pkgdown.yml'
21+
- 'DESCRIPTION'
22+
- 'README.md'
23+
- '.github/workflows/pkgdown.yaml'
624
pull_request:
725
branches: [main, master]
826
release:
@@ -40,6 +58,7 @@ jobs:
4058
shell: Rscript {0}
4159

4260
- name: Deploy to GitHub pages 🚀
61+
# Only deploy on push to main/master or releases (not on PRs)
4362
if: github.event_name != 'pull_request'
4463
uses: JamesIves/github-pages-deploy-action@v4.4.1
4564
with:

0 commit comments

Comments
 (0)