From 99d46a6b402b1bff538c97e6ab9443714cfc62e5 Mon Sep 17 00:00:00 2001 From: Riccardo Porreca Date: Wed, 24 Jan 2024 15:12:25 +0100 Subject: [PATCH] [WiP] Deploy from any branch (excluding PRs), as rTRhexNG-test --- .github/workflows/ci-cd.yml | 2 +- deploy/deploy-shinyapps.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 4255217..caa0b6f 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -35,7 +35,7 @@ jobs: - uses: r-lib/actions/check-r-package@v2 - name: Deploy to shinyapps.io - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/heads/') || startgithub.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' env: SHINYAPPS_ACCOUNT: ${{ secrets.SHINYAPPS_ACCOUNT }} SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }} diff --git a/deploy/deploy-shinyapps.R b/deploy/deploy-shinyapps.R index 6859771..55b59e4 100644 --- a/deploy/deploy-shinyapps.R +++ b/deploy/deploy-shinyapps.R @@ -10,5 +10,5 @@ if (!interactive()) { # Add here any additional files/directories the app needs app_files = c("app.R", "DESCRIPTION", "NAMESPACE", "R/", "inst/") rsconnect::deployApp( - appName = "rTRhexNG", appFiles = app_files, forceUpdate = TRUE + appName = "rTRhexNG-test", appFiles = app_files, forceUpdate = TRUE )