Skip to content

Commit

Permalink
Merge pull request #411 from ldecicco-USGS/main
Browse files Browse the repository at this point in the history
GitLab ci updates
  • Loading branch information
ldecicco-USGS authored Oct 10, 2024
2 parents 0096aa5 + 01e4fae commit be2232d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit be2232d

Please sign in to comment.