Skip to content

Commit 49a74ca

Browse files
authored
Merge pull request #173 from MangiolaLaboratory/github-pages-for-cmdstanr
Create pkgdown.yaml
2 parents 19a5182 + 299ea19 commit 49a74ca

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

.github/workflows/pkgdown.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
13+
14+
jobs:
15+
pkgdown:
16+
runs-on: ubuntu-latest
17+
concurrency:
18+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
19+
env:
20+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- uses: r-lib/actions/setup-pandoc@v2
25+
26+
- uses: r-lib/actions/setup-r@v2
27+
with:
28+
use-public-rspm: true
29+
30+
- name: Repos
31+
run: |
32+
cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE)
33+
shell: Rscript {0}
34+
35+
- uses: r-lib/actions/setup-r-dependencies@v2
36+
with:
37+
extra-packages: any::pkgdown, local::., any::cmdstanr
38+
needs: website
39+
cache-version: 2
40+
41+
- name: Install CmdStan
42+
shell: Rscript {0}
43+
run: |
44+
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
45+
cmdstanr::install_cmdstan()
46+
47+
- name: Build site
48+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
49+
shell: Rscript {0}
50+
51+
- name: Deploy to GitHub pages
52+
if: github.event_name != 'pull_request'
53+
uses: JamesIves/[email protected]
54+
with:
55+
clean: false
56+
branch: gh-pages
57+
folder: docs

.github/workflows/rworkflows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run_vignettes: ${{ true }}
4747
has_testthat: ${{ true }}
4848
run_covr: ${{ true }}
49-
run_pkgdown: ${{ true }}
49+
run_pkgdown: ${{ false }}
5050
has_runit: ${{ false }}
5151
has_latex: ${{ false }}
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: sccomp
22
Title: Tests differences in cell-type proportion for single-cell data, robust to outliers
3-
Version: 1.99.13
3+
Version: 1.99.14
44
Authors@R: c(person("Stefano", "Mangiola", email = "[email protected]",
55
role = c("aut", "cre"))
66
)

0 commit comments

Comments
 (0)