forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1019 Bytes
/
stage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Check links and stage
on:
pull_request:
branches:
- main
# Declare default permissions as read only.
permissions: read-all
jobs:
stage:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with:
submodules: recursive
- name: Build site and check links
run: make build BUILD_CONFIGS=_config.yml,_config_stage.yml
- name: Stage site on Firebase
if: ${{
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]' }}
uses: FirebaseExtended/action-hosting-deploy@4d0d0023f1d92b9b7d16dda64b3d7abd2c98974b
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.SERVICE_KEY }}
expires: 14d
projectId: flutter-docs-prod