Skip to content

Commit a832fcc

Browse files
Merge pull request #209 from ESHackathon/dev
Fix deploy conditions
2 parents ffaa1f0 + 9c395c6 commit a832fcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/document-and-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
git commit -m 'Documentation' || echo "No changes to commit"
5353
git push origin || echo "No changes to commit"
5454
55-
- name: Deploy
56-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
55+
- name: Deploy latest
56+
if: github.ref == 'refs/heads/dev' (from dev)
5757
env:
5858
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
5959
run: |
@@ -64,8 +64,8 @@ jobs:
6464
rsconnect::setAccountInfo(name=${{secrets.SHINY_LUKAS_ACCOUNT}}, token=${{secrets.SHINY_LUKAS_TOKEN}}, secret=${{secrets.SHINY_LUKAS_SECRET}});
6565
rsconnect::deployApp(appName = 'CiteSource_latest', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
6666
67-
- name: Deploy release version conditionally
68-
if: github.ref == 'refs/heads/dev'
67+
- name: Deploy stable version (from main)
68+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
6969
run: |
7070
R -e "
7171
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"

0 commit comments

Comments
 (0)