[完成翻译] src/platform-integration/web/initialization.md (#1343) #1450
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |