Skip to content

Add English localization #1

Add English localization

Add English localization #1

Workflow file for this run

name: Deploy Docs To Cloudflare Pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run docs:build
- name: Deploy preview
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
id: deploy-preview
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: >-
pages deploy docs/.vitepress/dist
--project-name=clawgo
--branch=${{ github.head_ref }}
- name: Deploy production
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deploy-production
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/.vitepress/dist --project-name=clawgo
- name: Print preview URL
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
run: echo "${{ steps.deploy-preview.outputs.pages-deployment-alias-url }}"
- name: Print production URL
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: echo "${{ steps.deploy-production.outputs.deployment-url }}"