Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc+ci: match ci and style with epipredict/epidatr #418

Merged
merged 25 commits into from
Mar 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9885f70
doc+ci+repo: fix style and release guide
dshemetov Feb 16, 2024
6b325da
Update .github/workflows/pkgdown.yaml
dshemetov Mar 7, 2024
c16b98b
Update DEVELOPMENT.md
dshemetov Mar 7, 2024
219e04a
ci: add document, lint, style like epidatr
dshemetov Mar 5, 2024
b40f90f
ci: add doc string with workflow mods
dshemetov Mar 6, 2024
cbf4e44
ci: fix style indentation
dshemetov Mar 6, 2024
4a941d2
doc: improve release process wording
dshemetov Mar 7, 2024
aa52363
doc: add link to DEVELOPMENT.md in pull request template
dshemetov Mar 7, 2024
f89ecdd
ci: simplify pkgdown ref logic
dshemetov Mar 7, 2024
a48d82c
doc: transfer maintainer role from Ryan to Logan
dshemetov Mar 7, 2024
9143422
doc: add comments explaining pkgdown action
dshemetov Mar 7, 2024
1a0a885
doc: clarify DEVELOPMENT.md
dshemetov Mar 7, 2024
d6f3675
Merge pull request #425 from cmu-delphi/ds/ci
dshemetov Mar 7, 2024
6fd2e1f
ci: fix pkgdown
dshemetov Mar 7, 2024
b19921a
More color-blind friendly green
dsweber2 Mar 7, 2024
68c027b
repo: add to .Rbuildignore
dshemetov Mar 7, 2024
0c8144e
lint: increase lintr happiness
dshemetov Mar 7, 2024
9331e6e
ci: build README.rmd only if it exists
dshemetov Mar 7, 2024
eb55b8b
ci: build README.rmd only if it exists
dshemetov Mar 7, 2024
b1f0432
Merge branch 'dev' into ds/docs-style
dshemetov Mar 7, 2024
69e0228
repo: ignore linter commit in blame
dshemetov Mar 7, 2024
9256dd2
refactor+lint: remove unused functions, snake_case
dshemetov Mar 7, 2024
0f47808
lint: objects to dplyr perhaps too much
dsweber2 Mar 7, 2024
ae1f3ad
style: styler (GHA)
dsweber2 Mar 7, 2024
216f0e9
light searchbar
dsweber2 Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: simplify pkgdown ref logic
dshemetov committed Mar 7, 2024
commit f89ecdd059e1ec3e091e387159acb9fe355a2a86
19 changes: 8 additions & 11 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -43,18 +43,15 @@ jobs:

- name: Build site
run: |
override <- if (startsWith("${{ github.event_name }}", "pull_request")) {
if ("${{ github.base_ref }}" == "main") {
list(development = list(mode = "release", version_label = "light"))
} else {
list(development = list(mode = "devel", version_label = "success"))
}
target_ref <- if (startsWith("${{ github.event_name }}", "pull_request")) {
"${{ github.base_ref }}"
} else {
if ("${{ github.ref_name }}" == "main") {
list(development = list(mode = "release", version_label = "light"))
} else {
list(development = list(mode = "devel", version_label = "success"))
}
"${{ github.ref }}"
}
override <- if (target_ref == "main") {
list(development = list(mode = "release", version_label = "light"))
} else {
list(development = list(mode = "devel", version_label = "success"))
}
pkg <- pkgdown::as_pkgdown(".", override = override)
cli::cli_rule("Cleaning files from old site...")