Skip to content

Commit

Permalink
Added the appendix vignette so we can just link to that whenever we n…
Browse files Browse the repository at this point in the history
…eed it (#32)

* started oscn appendix vignette

* update renv

* add quarto setup to pkgdown workflow

* converted qmd to rmd

* i am stupid and forgot to add ojodb

* trying w renv

* that worked, but I want to try a cleaner solution too

* adding renv step back in, it's needed for the vignette
  • Loading branch information
andrewjbe authored Jul 19, 2024
1 parent 588fc29 commit b739e79
Show file tree
Hide file tree
Showing 26 changed files with 3,502 additions and 29 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,51 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
# Configuring ojodb access for github actions
OJO_HOST: ${{ secrets.OJO_HOST }}
OJO_PORT: ${{ secrets.OJO_PORT }}
OJO_DEFAULT_USER: ${{ secrets.OJO_DEFAULT_USER }}
OJO_DEFAULT_PASS: ${{ secrets.OJO_DEFAULT_PASS }}
OJO_SSL_MODE: ${{ secrets.OJO_SSL_MODE }}
# Encoded secrets
OJO_SSL_CERT_BASE64: ${{ secrets.OJO_SSL_CERT_BASE64 }}
OJO_SSL_ROOT_CERT_BASE64: ${{ secrets.OJO_SSL_ROOT_CERT_BASE64 }}
OJO_SSL_KEY_BASE64: ${{ secrets.OJO_SSL_KEY_BASE64 }}
#
OJO_SSL_CERT: ${{ github.workspace }}/certs/client-cert.pem
OJO_SSL_ROOT_CERT: ${{ github.workspace }}/certs/server-ca.pem
OJO_SSL_KEY: ${{ github.workspace }}/certs/client-key.pk8
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- name: Decode secrets
shell: bash
run: |
mkdir certs
echo "$OJO_SSL_CERT_BASE64" | base64 --decode > certs/client-cert.pem
echo "$OJO_SSL_ROOT_CERT_BASE64" | base64 --decode > certs/server-ca.pem
echo "$OJO_SSL_KEY_BASE64" | base64 --decode > certs/client-key.pk8
chmod 0600 certs/client-key.pk8
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
extra-packages: any::pkgdown, local::., github::openjusticeok/ojodb
needs: website

- uses: r-lib/actions/setup-renv@v2

- uses: quarto-dev/quarto-actions/setup@v2

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
Expand Down
Loading

0 comments on commit b739e79

Please sign in to comment.