diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index ecf0640b3..4255bc23e 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -2,8 +2,13 @@ name: Build PR on: [pull_request] +permissions: + checks: write + contents: read + pull-requests: write + jobs: - build: + deploy_website: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -14,3 +19,11 @@ jobs: - run: npm install - run: npm run lint - run: npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_V8_DEV }}" + projectId: v8-dev + expires: 14d + env: + FIREBASE_CLI_PREVIEWS: hostingchannels \ No newline at end of file