Skip to content

Commit

Permalink
deploy based on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Jul 16, 2023
1 parent b7f5d31 commit 5110cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
source("renv/activate.R")
renv::restore()

# Project Renvironment in this case must take
# precedent over user Renvironment.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jobs:
deploy-production:
name: Deploy production
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
steps:
- name: Download Build Artifact
Expand All @@ -162,6 +163,7 @@ jobs:
deploy-preview:
name: Deploy preview
needs: build
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-22.04
steps:

Expand All @@ -188,7 +190,6 @@ jobs:
path: ${{ env.hugobd }}

- name: Deploy Netlify
if: github.ref != 'refs/heads/main'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Expand Down

0 comments on commit 5110cc5

Please sign in to comment.