Skip to content

Commit

Permalink
refactor firebase deploy authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdutey committed Nov 19, 2023
1 parent 586c406 commit 62f9657
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
^\.covrignore$
^firebase\.json$
^\.github$
^\.firebaserc$
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ramses-antibiotics"
}
}
12 changes: 6 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ jobs:

- name: Deploy to Firebase
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && matrix.config.os == 'ubuntu-20.04' && matrix.config.r == 'release'
uses: w9jds/firebase-action@master
uses: FirebaseExtended/action-hosting-deploy@v0
with:
args: deploy --only hosting
env:
PROJECT_ID: ramses-antibiotics
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RAMSES_ANTIBIOTICS }}'
projectId: ramses-antibiotics
channelId: live

- uses: r-lib/actions/setup-tinytex@v2
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') && github.event_name == 'push' && matrix.config.os == 'ubuntu-20.04' && matrix.config.r == 'release'

Expand Down

0 comments on commit 62f9657

Please sign in to comment.