Skip to content

Commit 38b229e

Browse files
committed
Build site in gh-pages branch automatically
1 parent bdefc8a commit 38b229e

642 files changed

Lines changed: 13 additions & 91413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pkgdown.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
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
33
on:
4-
# push:
5-
# branches: [main, master]
4+
# build dev site on merged pushes
5+
push:
6+
branches: [main, master]
7+
# build full site on releases
68
release:
79
types: [published]
810
workflow_dispatch:
911

1012
name: pkgdown.yaml
1113

12-
permissions: read-all
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
1317

1418
jobs:
1519
pkgdown:
1620
runs-on: ubuntu-latest
17-
concurrency:
18-
group: pkgdown-${{ github.run_id }}
19-
cancel-in-progress: true
2021
env:
2122
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2223
permissions:
@@ -50,7 +51,6 @@ jobs:
5051
any::StanHeaders
5152
any::knitr
5253
any::withr
53-
any::spdep
5454
needs: website
5555

5656
# - uses: actions/cache@v4
@@ -71,7 +71,9 @@ jobs:
7171
)
7272
shell: Rscript {0}
7373

74-
- uses: stefanzweifel/git-auto-commit-action@v6
74+
- name: Deploy to GitHub pages 🚀
75+
uses: JamesIves/github-pages-deploy-action@v4.5.0
7576
with:
76-
commit_message: "pkgdown: update docs [skip CI]"
77-
file_pattern: docs/**
77+
clean: true
78+
branch: gh-pages
79+
folder: docs

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
url: https://mc-stan.org/loo/
2-
destination: docs
2+
destination: "docs/"
33
template:
44
package: pkgdownConfig
55
development:

docs/404.html

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)