diff --git a/.Rbuildignore b/.Rbuildignore index 4f4c124..5304a9c 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -17,3 +17,4 @@ ^\.covrignore$ ^firebase\.json$ ^\.github$ +^\.firebaserc$ diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..93ac65d --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "ramses-antibiotics" + } +} diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 27baa78..ef4bcbb 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -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'