Skip to content

Commit 46205ce

Browse files
committed
add gh actions
1 parent c856eef commit 46205ce

5 files changed

Lines changed: 56 additions & 3 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/build.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: build
10+
11+
jobs:
12+
build-deploy:
13+
runs-on: windows-latest
14+
env:
15+
GITHUB_PAT: ${{secrets.GITHUB_TOKEN}}
16+
NOAA_KEY: ${{secrets.NOAA_KEY}}
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v4
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
extra-repositories: 'https://tbep-tech.r-universe.dev'
23+
- name: Setup pandoc
24+
uses: r-lib/actions/setup-pandoc@v2
25+
- name: Set up Quarto
26+
uses: quarto-dev/quarto-actions/setup@v2
27+
with:
28+
# To install LaTeX to build PDF book
29+
tinytex: true
30+
# uncomment below and fill to pin a version
31+
version: 1.3.450
32+
- name: Setup R dependencies
33+
uses: r-lib/actions/setup-r-dependencies@v2
34+
with:
35+
packages: |
36+
tbeptools
37+
any::tidyverse
38+
any::flextable
39+
any::patchwork
40+
any::here
41+
any::rmarkdown
42+
any::ggrepel
43+
any::knitr
44+
any::ftExtra
45+
any::ggspatial
46+
any::prettymapr
47+
- name: Publish to GitHub Pages (and render)
48+
uses: quarto-dev/quarto-actions/publish@v2
49+
with:
50+
target: gh-pages
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

348 Bytes

tbnmc-compliance-assessment-2025

build

DRAFT - Materials for the the 2025 TBNMC compliance assessment report

summary.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "{{< var maxyr >}} Results Summary"
33
params:
4-
maxyr: 20255
4+
maxyr: 2025
55
bibliography: refs.bib
66
---
77

@@ -48,8 +48,7 @@ Lastly, annual hydrologic conditions among all the major bay segments in {{< var
4848
```{r}
4949
#| label: tbl-hydrotab
5050
#| tbl-cap: !expr paste0("Hydrologic load estimates in ", params$maxyr, " relative to 1992-1994 levels and estimated compliance load adjustment factors for the major bay segments.")
51-
# hydrotab(params$maxyr, Sys.getenv('NOAA_KEY'))
52-
knitr::kable(mtcars)
51+
hydrotab(params$maxyr, Sys.getenv('NOAA_KEY'))
5352
```
5453

5554
```{r}

0 commit comments

Comments
 (0)