Skip to content

Commit

Permalink
Merge pull request #209 from ESHackathon/dev
Browse files Browse the repository at this point in the history
Fix deploy conditions
  • Loading branch information
LukasWallrich authored Sep 27, 2024
2 parents ffaa1f0 + 9c395c6 commit a832fcc
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 a832fcc

Please sign in to comment.