π Sync updated workspace manifests @ 56deb40b9ffd77c924ee20088f3198β¦
#428
Workflow file for this run
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: π Documentation CI | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| deployments: write | |
| packages: write | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: π§Ή Lint | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v6 | |
| - uses: pre-commit/action@v3.0.1 | |
| build: | |
| name: π Build Documentation | |
| runs-on: ubuntu-latest | |
| needs: | |
| - lint | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: π΅ Setup NodeJS | |
| uses: actions/setup-node@v6 | |
| - name: β¬ Install Dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: π·ββοΈ Build | |
| run: yarn run docs:build | |
| - name: πΌ Upload Artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: build | |
| path: .vitepress/dist | |
| docker: | |
| name: π³ Docker Build | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| needs: | |
| - build | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: π½ Download Artifact | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: build | |
| path: .vitepress/dist | |
| merge-multiple: true | |
| - uses: docker/setup-qemu-action@v3 | |
| - uses: docker/setup-buildx-action@v3 | |
| - name: π Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| flavor: | | |
| latest=false | |
| tags: | | |
| type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} | |
| type=semver,pattern=v{{version}} | |
| type=semver,pattern=v{{major}}.{{minor}} | |
| - name: π³ Docker Build & Push | |
| uses: docker/build-push-action@v6 | |
| id: docker_build | |
| env: | |
| DOCKER_BUILD_SUMMARY: true | |
| with: | |
| context: . | |
| labels: ${{ steps.meta.outputs.labels }} | |
| push: ${{ github.ref == 'refs/heads/main' }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| deploy: | |
| name: π Deploy Documentation | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| steps: | |
| - name: π½ Download Artifact | |
| uses: actions/download-artifact@v7 | |
| with: | |
| path: build | |
| merge-multiple: true | |
| - name: β Deploy to Cloudflare | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| command: >- | |
| pages deploy build | |
| --project-name=workspace-documentation |