From 64b4d783fee637cad7b30e9fe7ecdf8024874b1a Mon Sep 17 00:00:00 2001 From: Kasia Date: Mon, 22 Mar 2021 22:33:43 +0000 Subject: [PATCH] make env global --- .github/workflows/deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 84036da..483796d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,10 @@ on: push jobs: run_container: runs-on: ubuntu-latest + env: + SHINY_ACC_NAME=${{secrets.SHINY_ACC_NAME}} + TOKEN=${{secrets.TOKEN}} + SECRET=${{secrets.SECRET}} container: image: kasiatemp/ng-update:shiny steps: @@ -12,9 +16,6 @@ jobs: with: ref: 'main' - name: Deploy app - env: - SHINY_ACC_NAME=${{secrets.SHINY_ACC_NAME}} - TOKEN=${{secrets.TOKEN}} - SECRET=${{secrets.SECRET}} + run: | bash Rscript deploy.R