Skip to content

Commit 6039bc9

Browse files
committed
new workflow
1 parent 6bda191 commit 6039bc9

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/altdoc.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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: altdoc
13+
14+
jobs:
15+
altdoc:
16+
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: altdoc-${{ github.event_name != 'pull_request' || github.run_id }}
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: quarto-dev/quarto-actions/setup@v2
28+
29+
- name: Get Script
30+
run: curl -OLs https://eddelbuettel.github.io/r-ci/run.sh && chmod 0755 run.sh
31+
32+
- name: Bootstrap
33+
run: ./run.sh bootstrap
34+
35+
- name: Dependencies
36+
run: ./run.sh install_all
37+
38+
- name: Build site
39+
run: |
40+
# If parallel = TRUE in render_docs()
41+
# future::plan(future::multicore)
42+
install.packages(".", repos = NULL, type = "source")
43+
install.packages("pkgload")
44+
pkgload::load_all()
45+
altdoc::render_docs(parallel = FALSE, freeze = FALSE)
46+
shell: Rscript {0}
47+
48+
- name: Deploy to GitHub pages 🚀
49+
if: github.event_name != 'pull_request'
50+
uses: JamesIves/github-pages-deploy-action@v4
51+
with:
52+
clean: false
53+
branch: gh-pages
54+
folder: docs

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5-
.github
65
docs
76
altdoc/freeze.rds
87
_quarto/*

0 commit comments

Comments
 (0)