Skip to content

Commit

Permalink
Re-updating deploy file
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Oct 19, 2023
1 parent 6b9e31f commit 6a490ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy-shiny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ name: deploy-shiny
jobs:
deployShiny:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
# Running on mac as it's quicker to build
- {os: macOS-latest, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
RENV_PATHS_ROOT: ~/.local/share/renv

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.2.1
use-public-rspm: true
- name: Set env vars (dev)

- name: Set env vars (dev)
if: endsWith(github.ref, '/development')
run: |
echo "SHINYAPP_NAME='dev-KS4-transition-matrices'" >> $GITHUB_ENV
- name: Set env vars (prod)
echo "SHINYAPP_NAME='dev-KS4-ready-reckoners'" >> $GITHUB_ENV
- name: Set env vars (prod)
if: endsWith(github.ref, '/main')
run: |
echo "SHINYAPP_NAME='KS4-transition-matrices'">> $GITHUB_ENV
Expand Down Expand Up @@ -78,3 +78,4 @@ jobs:
Rscript
-e "rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')"
-e "rsconnect::deployApp(appName=${{env.SHINYAPP_NAME}})"
4 changes: 2 additions & 2 deletions renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
local({

# the requested version of renv
version <- "1.0.3"
attr(version, "sha") <- NULL
version <- ..version..
attr(version, "sha") <- ..sha..

# the project directory
project <- getwd()
Expand Down

0 comments on commit 6a490ff

Please sign in to comment.