🔥 Remove flutter
as a submodule
#7939
Workflow file for this run
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 | |
schedule: | |
- cron: "0 0 * * 0" | |
# 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 == 'flutter/website' | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Beta channel" | |
branch: beta | |
experimental: true | |
- name: "Stable channel" | |
branch: stable | |
experimental: false | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
with: | |
submodules: recursive | |
- 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 == 'flutter/website' | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
with: | |
submodules: recursive | |
- name: Build site and check links | |
run: make build | |
- name: Install Node for Firebase install | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Firebase CLI | |
run: npm install -g firebase-tools@12.4.0 | |
- name: Deploy to Firebase hosting | |
run: make deploy | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_ALIAS: default |