diff --git a/.github/workflows/deploy-next.yml b/.github/workflows/deploy-next.yml index ee45fd8..7339a2c 100644 --- a/.github/workflows/deploy-next.yml +++ b/.github/workflows/deploy-next.yml @@ -7,6 +7,9 @@ on: # Allows you to run this workflow manually workflow_dispatch: +permissions: + contents: read # for actions/checkout to read the repository + jobs: deploy_next: if: ${{ github.repository_owner == 'koobiq' }} @@ -17,4 +20,9 @@ jobs: fetch-depth: 0 - uses: ./.github/actions/setup-node - run: yarn run build - - run: yarn firebase deploy --only hosting:next --token=${{ secrets.FIREBASE_DEPLOY_TOKEN }} + - uses: FirebaseExtended/action-hosting-deploy@v0.11.0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOOBIQ }} + target: next + channelId: live # reserved channel ID for the live/production site (not a temporary preview channel) diff --git a/.github/workflows/redeploy-preview.yml b/.github/workflows/redeploy-preview.yml index b146fce..334f35d 100644 --- a/.github/workflows/redeploy-preview.yml +++ b/.github/workflows/redeploy-preview.yml @@ -38,7 +38,6 @@ jobs: firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOOBIQ }}' expires: 3d channelId: data-grid-pr-${{ github.event.issue.number }} - projectId: koobiq target: next - uses: thollander/actions-comment-pull-request@v3 if: ${{ failure() }}