Skip to content

Bump examples/codelabs from abcbe20 to 5887661 (#10082) #11854

Bump examples/codelabs from abcbe20 to 5887661 (#10082)

Bump examples/codelabs from abcbe20 to 5887661 (#10082) #11854

Workflow file for this run

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: 20
jobs:
test:
name: Check excerpts and run tests
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@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Test
env:
FLUTTER_BUILD_BRANCH: ${{ matrix.branch }}
run: make test
continue-on-error: ${{ matrix.experimental }}
linkcheck:
name: Build site and check links
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Build site and check links
run: make build BUILD_CONFIGS=_config.yml,_config_stage.yml
- name: Install Node for Firebase install
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Firebase CLI
run: npm install -g firebase-tools@13.0.2
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b
with:
sdk: stable
- run: tool/check-links.sh
deploy:
name: Deploy to production
needs: test
runs-on: ubuntu-latest
if: |
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& github.repository == 'flutter/website'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Build site and check links
run: make build
- name: Install Node for Firebase install
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Firebase CLI
run: npm install -g firebase-tools@13.0.2
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b
with:
sdk: stable
- run: tool/check-links.sh
- name: Deploy to Firebase hosting
run: make deploy # TODO(drewroengoogle) Run deploy on Cloud Build.
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_ALIAS: default