From 29a635ca6cc9f6999f207b628298d46e8338e12e Mon Sep 17 00:00:00 2001 From: Rene Floor Date: Thu, 22 Jan 2026 10:37:11 +0100 Subject: [PATCH 1/2] chore(repo): Add workflow to publish design system gallery (#32) * Add workflow to publish design system gallery * remove specific flutter version --- .github/workflows/publish_gallery.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish_gallery.yml diff --git a/.github/workflows/publish_gallery.yml b/.github/workflows/publish_gallery.yml new file mode 100644 index 0000000..769e779 --- /dev/null +++ b/.github/workflows/publish_gallery.yml @@ -0,0 +1,41 @@ +name: Publish Design System Gallery + +on: + push: + branches: + - main-design-system + workflow_dispatch: + +env: + FLUTTER_CHANNEL: stable + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build_and_deploy_gallery: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: config git + run: | + git config --global user.email "$(git log --format='%ae' HEAD^!)" + git config --global user.name "$(git log --format='%an' HEAD^!)" + git fetch origin gh-pages:gh-pages + + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + cache: true + channel: ${{ env.FLUTTER_CHANNEL }} + flutter-version: ${{ env.FLUTTER_VERSION }} + + - name: Build and Deploy + uses: bluefireteam/flutter-gh-pages@v9 + with: + baseHref: /stream-core-flutter/ + workingDir: apps/design_system_gallery From 68a5019754f9946e678d0b81dd79596338eeabdb Mon Sep 17 00:00:00 2001 From: Rene Floor Date: Thu, 22 Jan 2026 10:41:49 +0100 Subject: [PATCH 2/2] don't fetch remote branch --- .github/workflows/publish_gallery.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish_gallery.yml b/.github/workflows/publish_gallery.yml index 769e779..82207d4 100644 --- a/.github/workflows/publish_gallery.yml +++ b/.github/workflows/publish_gallery.yml @@ -25,7 +25,6 @@ jobs: run: | git config --global user.email "$(git log --format='%ae' HEAD^!)" git config --global user.name "$(git log --format='%an' HEAD^!)" - git fetch origin gh-pages:gh-pages - name: Setup Flutter uses: subosito/flutter-action@v2