Skip to content

Add adaptive FCalendar height that follows the month (#1059) #573

Add adaptive FCalendar height that follows the month (#1059)

Add adaptive FCalendar height that follows the month (#1059) #573

Workflow file for this run

name: Docs Deploy
on:
push:
branches: [main]
tags:
- forui/*
paths:
- '.github/workflows/docs_deploy.yaml'
- 'docs/**'
- 'docs_snippets/**'
workflow_dispatch:
inputs:
target:
type: choice
description: 'Environment'
required: true
options:
- development
- production
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: docs
cancel-in-progress: false
jobs:
docs:
name: Deploy Docs
runs-on: ubuntu-latest
environment: ${{ (startsWith(github.ref, 'refs/tags/forui/') || inputs.target == 'production') && 'docs-production' || 'docs-development' }}
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v6
# Generate JSON snippets for docs
- uses: subosito/flutter-action@v2.23.0
- name: Build forui dependencies
working-directory: ./forui
run: |
flutter pub get
dart run build_runner build
- name: Generate snippets
working-directory: ./docs_snippets
run: |
flutter pub get
dart run tool/snippet_generator/main.dart
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: pnpm/action-setup@v6
with:
version: 11
- run: pnpm install
- name: Deploy to Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
NEXT_PUBLIC_SNIPPETS_URL: ${{ vars.SNIPPETS_URL }}
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ vars.GA_MEASUREMENT_ID }}
run: pnpm run deploy ${{ vars.DEPLOY_ARGS }}
docs_snippets:
name: Deploy Doc Snippets
runs-on: ubuntu-latest
environment: ${{ (startsWith(github.ref, 'refs/tags/forui') || inputs.target == 'production') && 'docs-production' || 'docs-development' }}
defaults:
run:
working-directory: ./docs_snippets
steps:
- uses: actions/checkout@v6
- uses: subosito/flutter-action@v2.23.0
- working-directory: forui
run: |
flutter pub get
dart run build_runner build
- run: flutter pub get
- run: dart run build_runner build
- run: flutter build web
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v4
id: publish-docs
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./docs_snippets/build/web --project-name=${{ vars.CLOUDFLARE_SNIPPETS_PROJECT_NAME }} --branch=main
# Check that all relative URLs are working. We don't check GitHub links due to rate limiting.
- uses: actions/setup-go@v6
with:
go-version: '1.26'
- run: go install github.com/raviqqe/muffet/v2@latest
- run: muffet ${{ steps.publish-docs.outputs.deployment-url }} --buffer-size=32768 --exclude="(\/cdn-cgi\/)|(github.com)|(discord.gg)"
if: startsWith(github.ref, 'refs/tags/forui/') || inputs.target == 'production'