Skip to content

Commit 5d190d9

Browse files
committed
Add pkgdown configuration and update GitHub Actions for deployment
1 parent 12beb07 commit 5d190d9

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ model_glm_dirichlet_multinomial_imputation.rds
2626
^Meta$
2727
sccomp_draws_files
2828

29+
^_pkgdown\.yml$
30+
^docs$
31+
^pkgdown$

.github/workflows/workflow_with_cmdstanr.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -125,26 +125,15 @@ jobs:
125125
- name: Build pkgdown site
126126
shell: Rscript {0}
127127
run: |
128-
pkgdown::build_site()
128+
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
129129
env:
130130
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
131131

132-
- name: Upload artifact
133-
uses: actions/upload-pages-artifact@v3
132+
- name: Deploy to GitHub pages 🚀
133+
if: github.event_name != 'pull_request' || github.head_ref == 'fix-github-pages'
134+
uses: JamesIves/github-pages-deploy-action@v4.5.0
134135
with:
135-
path: ./docs
136-
137-
# Deploy job
138-
deploy:
139-
needs: build
140-
permissions:
141-
pages: write
142-
id-token: write
143-
environment:
144-
name: github-pages
145-
url: ${{ steps.deployment.outputs.page_url }}
146-
runs-on: ubuntu-latest
147-
steps:
148-
- name: Deploy to GitHub Pages
149-
id: deployment
150-
uses: actions/deploy-pages@v4
136+
clean: false
137+
branch: gh-pages
138+
folder: docs
139+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ Rplot.pdf
4545
/Meta/
4646
sccomp_draws_files
4747
.DS_Store
48+
docs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ SystemRequirements: CmdStan (https://mc-stan.org/users/interfaces/cmdstan), C++1
5555
biocViews: Bayesian, Regression, DifferentialExpression, SingleCell, Metagenomics, FlowCytometry, Spatial
5656
LazyData: true
5757
VignetteBuilder: knitr
58-
URL: https://github.com/MangiolaLaboratory/sccomp
58+
URL: https://github.com/MangiolaLaboratory/sccomp, https://mangiolalaboratory.github.io/sccomp/
5959
BugReports: https://github.com/MangiolaLaboratory/sccomp/issues
6060
Config/testthat/edition: 3
6161
Config/testthat/parallel: true

_pkgdown.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
url: https://mangiolalaboratory.github.io/sccomp/
2+
template:
3+
bootstrap: 5
4+

0 commit comments

Comments
 (0)