fix(index.html): correct script URL for Ant Design Vue documentation … #6
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: Build and Deploy to Cloudflare | |
on: | |
push: | |
branches: [ 3.x ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build Application | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install --force | |
- name: Build application | |
run: npm run build | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-files | |
path: site/dist/ | |
retention-days: 1 | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to Cloudflare | |
needs: build | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- name: Checkout (for config files) | |
uses: actions/checkout@v5 | |
with: | |
sparse-checkout: | | |
wrangler.jsonc | |
sparse-checkout-cone-mode: false | |
- name: Download build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: build-files | |
path: site/dist/ | |
- name: Deploy (Workers + Static Assets) | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: deploy --config wrangler.jsonc | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |