-
Notifications
You must be signed in to change notification settings - Fork 353
36 lines (33 loc) · 1.02 KB
/
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
34
35
36
name: Stage site on Firebase
on:
pull_request:
branches:
- main
# Declare default permissions as read only.
permissions: read-all
jobs:
stage:
permissions:
contents: read
checks: write
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == 'cfug/flutter.cn' }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Build site
run: make stage-local
- name: Stage
if: ${{
github.repository == 'cfug/flutter.cn' &&
github.event.pull_request.user.login != 'dependabot[bot]' }}
uses: cfug/doc-site-preview-in-pr@main
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLUTTER_CN_DOCS_PROD }}'
expires: 14d
projectId: flutter-cn-docs-prod
showDetailedUrls: true
fileExtensionFilter: "md, html"