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

GitLab ci updates #411

Merged
merged 13 commits into from
Oct 10, 2024
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ variables:
_R_CHECK_DONTTEST_EXAMPLES_: "false"
R_PROFILE: "$R_HOME/etc/Rprofile.site"
APT_CACHE: "$CI_PROJECT_DIR/ci/lib/apt-cache"
CRAN: "https://rpkg.chs.usgs.gov/prod-cran/latest"
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
R_LIBS: "$CI_PROJECT_DIR/ci/lib"
BUILD_LOGS_DIR: "$CI_PROJECT_DIR/ci/logs"
Expand Down Expand Up @@ -103,8 +102,9 @@ pages:
only:
- main
script:
- echo -e "options(repos=c(DEV = '${DEV}', CRAN = '${CRAN}'));" >> $R_PROFILE
- Rscript -e 'install.packages("toxEval", repos = Sys.getenv("DEV")); packageVersion("toxEval"); source("deploy_simple.R")'
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
- Rscript -e 'source("deploy_simple.R")'
artifacts:
paths:
- $PAGES_OUTDIR
Expand Down
2 changes: 0 additions & 2 deletions deploy_simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ library(connectapi)
client <- connect(server = Sys.getenv("CONNECT_SERVER"),
api_key = Sys.getenv("CONNECT_API_KEY"))

install.packages("toxEval", repos = "https://rpkg.chs.usgs.gov/prod-cran/latest")

rsconnect::writeManifest(appDir = "./inst/shiny")
bundle <- bundle_dir("./inst/shiny")

Expand Down
Loading