Skip to content

[完成翻译] src/platform-integration/web/initialization.md (#1343) #1450

[完成翻译] src/platform-integration/web/initialization.md (#1343)

[完成翻译] src/platform-integration/web/initialization.md (#1343) #1450

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
# Declare default permissions as read only.
permissions: read-all
env:
NODE_ENV: production
NODE_VERSION: 18
jobs:
test:
runs-on: ubuntu-latest
if: github.repository == 'cfug/flutter.cn'
strategy:
fail-fast: false
matrix:
include:
- name: "Beta channel"
branch: beta
experimental: true
- name: "Stable channel"
branch: stable
experimental: false
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
submodules: recursive
- name: Move docs
run: make move-docs
- name: Test
run: make test FLUTTER_TEST_BRANCH=${{ matrix.branch }}
continue-on-error: ${{ matrix.experimental }}
deploy:
needs: test
runs-on: ubuntu-latest
if: |
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& github.repository == 'cfug/flutter.cn'
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
submodules: recursive
- name: Move docs
run: make move-docs
- name: Build site and check links
run: make build
- name: Deploy
run: make deploy
env:
DEPLOY_TOKEN: ${{ secrets.CHENGLU_DEPLOY_KEY }}