Skip to content

Commit dcc0a12

Browse files
Merge pull request #42 from rapidsurveys/dev
setup netlify workflow; fix #41
2 parents 661f696 + 487e9fe commit dcc0a12

File tree

7 files changed

+67
-8
lines changed

7 files changed

+67
-8
lines changed

.github/workflows/netlify.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on:
2+
pull_request:
3+
branches: [main, master]
4+
5+
name: pkgdown-pr
6+
7+
jobs:
8+
netlify:
9+
runs-on: ubuntu-latest
10+
env:
11+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: r-lib/actions/setup-tinytex@v2
16+
17+
- uses: r-lib/actions/setup-pandoc@v2
18+
19+
- uses: r-lib/actions/setup-r@v2
20+
with:
21+
use-public-rspm: true
22+
23+
- uses: r-lib/actions/setup-r-dependencies@v2
24+
with:
25+
extra-packages: any::pkgdown, local::.
26+
needs: website
27+
28+
- name: Install package
29+
run: R CMD INSTALL .
30+
31+
- name: Create website
32+
run: |
33+
pkgdown::build_site()
34+
shell: Rscript {0}
35+
36+
- name: Create index file
37+
run: |
38+
echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;URL=/dev/index.html" /> <script language="javascript"> window.location.replace('/dev/index.html')</script></head></html>' > ./docs/index.html
39+
40+
- name: Deploy to Netlify
41+
uses: nwtgck/[email protected]
42+
with:
43+
publish-dir: './docs'
44+
production-branch: main
45+
github-token: ${{ secrets.GITHUB_TOKEN }}
46+
deploy-message:
47+
'Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
48+
# these default to 'true'
49+
enable-commit-comment: false
50+
enable-github-deployment: false
51+
env:
52+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
53+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ Encoding: UTF-8
2727
Language: en-GB
2828
LazyData: true
2929
RoxygenNote: 7.3.2
30-
Roxygeon: list(markdown = TRUE)
30+
Roxygen: list(markdown = TRUE)
3131
URL: https://rapidsurveys.io/okapi/,https://github.com/rapidsurveys/okapi
3232
BugReports: https://github.com/rapidsurveys/okapi/issues

README.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ Currently, `{okapi}` provides functions to interface with [ONA](https://getodk.o
4848
```{r install, echo = TRUE, eval = FALSE}
4949
install.packages(
5050
"okapi",
51-
repos = c('https://rapidsurveys.r-universe.dev', 'https://cloud.r-project.org')
51+
repos = c(
52+
'https://rapidsurveys.r-universe.dev', 'https://cloud.r-project.org'
53+
)
5254
)
5355
```
5456

inst/CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ bibentry(
44
title = "okapi: Open Data Kit (ODK)-based Computer-assisted Personal Interview (CAPI) Tools",
55
author = person("Ernest Guevarra"),
66
year = "2024",
7-
note = "R package version 0.0.0.9000",
7+
note = "R package version 0.1.0.9000",
88
url = "https://rapidsurveys.io/okapi/",
99
doi = "10.5281/zenodo.206914853",
1010
)

man/ona_project_register.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ona_project_share.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgdown/_pkgdown.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ navbar:
1818
type: light
1919
structure:
2020
left: [home, intro, reference, articles, news]
21-
right: [search, mastodon, github]
21+
right: [search, mastodon, linkedin, github]
2222

2323
components:
2424
# articles:
@@ -28,8 +28,12 @@ navbar:
2828
# href: articles/haemoglobinaemia.html
2929
mastodon:
3030
icon: "fab fa-mastodon fa-lg"
31-
href: https://fosstodon.org/@katilingban
3231
aria-label: Mastodon
32+
href: https://fosstodon.org/@katilingban
33+
linkedin:
34+
icon: "fab fa-linkedin fa-lg"
35+
aria-label: LinkedIn
36+
href: https://www.linkedin.com/company/katilingban
3337

3438
home:
3539
links:

0 commit comments

Comments
 (0)