Skip to content

Commit

Permalink
Fix deploy conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWallrich committed Sep 27, 2024
1 parent aa2e742 commit 9c395c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/document-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
git commit -m 'Documentation' || echo "No changes to commit"
git push origin || echo "No changes to commit"
- name: Deploy
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
- name: Deploy latest
if: github.ref == 'refs/heads/dev' (from dev)
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -64,8 +64,8 @@ jobs:
rsconnect::setAccountInfo(name=${{secrets.SHINY_LUKAS_ACCOUNT}}, token=${{secrets.SHINY_LUKAS_TOKEN}}, secret=${{secrets.SHINY_LUKAS_SECRET}});
rsconnect::deployApp(appName = 'CiteSource_latest', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
- name: Deploy release version conditionally
if: github.ref == 'refs/heads/dev'
- name: Deploy stable version (from main)
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
run: |
R -e "
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
Expand Down

0 comments on commit 9c395c6

Please sign in to comment.