Skip to content

fix operator==

fix operator== #77

# Builds and deploys example web apps for each of the packages to GitHub Pages
name: Deploy examples to GitHub Pages
on:
push:
branches:
- main
paths:
- 'packages/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Determine which packages have example apps
find-example-apps:
runs-on: ubuntu-latest
outputs:
example-apps: ${{ steps.find-example-apps.outputs.example-apps }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: man ls
- name: Find example apps
id: find-example-apps
# Outputs a JSON list of packages with example apps, e.g. ["dynamic_color", "google_fonts"]
run: |
echo "::set-output name=example-apps::$(ls -d */example | xargs dirname | jq -R -s -c 'split("\n")[:-1]')"
working-directory: packages
# Build example web apps job
build:
needs: find-example-apps
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
package: ${{ fromJson(needs.find-example-apps.outputs.example-apps) }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
with:
channel: 'stable'
- name: Build Flutter web app
run: flutter build web -v --release --output /tmp/${{ matrix.package }} --base-href /${{ github.event.repository.name }}/${{ matrix.package }}/
working-directory: packages/${{ matrix.package }}/example
- name: Upload web build temporarily
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: ${{ matrix.package }}
path: /tmp/${{ matrix.package }}
retention-days: 1
# Upload pages artifact to pages job
upload-to-pages:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all web builds
uses: actions/download-artifact@f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110 # v4.1.0
- name: Upload pages artifact
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3.0.0
with:
path: '.'
# Deploy job
deploy-pages:
needs: upload-to-pages
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@7a9bd943aa5e5175aeb8502edcc6c1c02d398e10 # v4.0.2