Is attached (#1194) #312
This file contains hidden or 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: CI-docs-website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - '.github/actions/**' | |
| - '.github/workflows/**' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy-docs-website: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| env: | |
| NEXTJS_IGNORE_ESLINT: true | |
| NEXTJS_IGNORE_TYPECHECK: true | |
| NEXT_DISABLE_SOURCEMAPS: true | |
| NEXT_TELEMETRY_DISABLED: true | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.13.1 | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: ⚙️ Setup node 24.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24.x" | |
| package-manager-cache: false | |
| - name: ⏩ TurboRepo local server | |
| uses: felixmosh/turborepo-gh-artifacts@v4 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| server-token: ${{ secrets.CI_TURBO_SERVER_TOKEN }} | |
| - name: 📥 Monorepo install | |
| uses: ./.github/actions/yarn-nm-install | |
| - name: ♻️ Restore website docs build caches | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ${{ github.workspace }}/docs/.next/cache | |
| ${{ github.workspace }}/.cache | |
| ${{ github.workspace }}/docs/tsconfig.tsbuildinfo | |
| key: website-docs-build-cache-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
| - name: 🕵️ Typecheck | |
| run: yarn turbo run typecheck --filter='@docs/website' --token="${{ secrets.CI_TURBO_SERVER_TOKEN }}" | |
| - name: 🔬 ESLint checks | |
| run: yarn turbo run lint --filter='@docs/website' --token="${{ secrets.CI_TURBO_SERVER_TOKEN }}" | |
| - name: 🏗 Build docs | |
| run: yarn workspace @docs/website run build-static | |
| env: | |
| NEXT_BUILD_BASE_PATH: "/flowblade" | |
| NEXT_TELEMETRY_DISABLED: true | |
| - name: 🚀 Upload doc website artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./docs/out | |
| - name: 🚀 Deploy | |
| if: ${{ github.repository == 'belgattitude/flowblade' && contains('refs/heads/main',github.ref)}} | |
| id: deployment | |
| uses: actions/deploy-pages@v5 | |
| #- name: 🚀 Deploy | |
| # if: ${{ github.repository == 'belgattitude/flowblade' && contains('refs/heads/main',github.ref)}} | |
| # run: | | |
| # git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
| # yarn website:deploy -u "github-actions-bot <support+actions@github.com>" | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |