a347f3f625
Deploy to Cloudflare Pages / deploy (push) Failing after 11m4s
Gitea runner at git.ampbox.io doesn't have an actions mirror. Replace actions/checkout, setup-node, and wrangler-action with plain git clone, npm ci, and npx wrangler. 🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier) Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
24 lines
593 B
YAML
24 lines
593 B
YAML
name: Deploy to Cloudflare Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth 1 --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
|
|
|
|
- name: Build and deploy
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
npx wrangler pages deploy dist/ --project-name=crashtestdev
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|