fix: use shell checkout in Gitea workflow (no marketplace actions)
Deploy to Cloudflare Pages / deploy (push) Failing after 11m4s
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>
This commit is contained in:
+10
-18
@@ -10,22 +10,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Build and deploy
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
npm ci
|
||||||
node-version: 22
|
npm run build
|
||||||
|
npx wrangler pages deploy dist/ --project-name=crashtestdev
|
||||||
- name: Install dependencies
|
env:
|
||||||
run: npm ci
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
|
||||||
uses: cloudflare/wrangler-action@v3
|
|
||||||
with:
|
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
command: pages deploy dist/ --project-name=crashtestdev
|
|
||||||
|
|||||||
Reference in New Issue
Block a user