Pages 프로젝트 자동 생성 단계 추가
All checks were successful
Publish ParaWiki / build-and-deploy (push) Successful in 33s
All checks were successful
Publish ParaWiki / build-and-deploy (push) Successful in 33s
첫 배포 시 프로젝트가 없어서 실패했던 문제 수정. 배포 전에 project create를 시도하고, 이미 존재하면 continue-on-error로 통과. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,14 @@ jobs:
|
|||||||
working-directory: quartz
|
working-directory: quartz
|
||||||
run: npx quartz build
|
run: npx quartz build
|
||||||
|
|
||||||
|
- name: Ensure Cloudflare Pages project exists
|
||||||
|
continue-on-error: true
|
||||||
|
uses: cloudflare/wrangler-action@v3
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
command: pages project create parawiki --production-branch=main
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: Deploy to Cloudflare Pages
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user