Skip to content

πŸ”„ Sync updated workspace manifests @ 56deb40b9ffd77c924ee20088f3198… #428

πŸ”„ Sync updated workspace manifests @ 56deb40b9ffd77c924ee20088f3198…

πŸ”„ Sync updated workspace manifests @ 56deb40b9ffd77c924ee20088f3198… #428

Workflow file for this run

---
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