File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ jobs:
29
29
run : npm install
30
30
- name : Build
31
31
run : |
32
- response=$(curl -s -o /dev/null -w "%{http_code}" -X GET "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CLOUDFLARE_ACCOUNT_ID }}/pages/projects/font-generator" \
32
+ response=$(curl -s -o /dev/null -w "%{http_code}" -X GET "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CLOUDFLARE_ACCOUNT_ID }}/pages/projects/font-generator-preview " \
33
33
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}")
34
34
if [ $response -eq 404 ]; then
35
35
echo "Project does not exist, creating..."
36
- npx wrangler pages project create font-generator --production-branch main
36
+ npx wrangler pages project create font-generator-preview --production-branch main
37
37
else
38
38
echo "Project exists, skipping creation."
39
39
fi
40
+ sed -i 's/font-generator/font-generator-preview/' wrangler.toml
40
41
npm run pages:build
41
42
env :
42
43
CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
48
49
with :
49
50
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
50
51
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
51
- command : pages deploy --branch dev
52
-
53
- - name : Print Deployment Url
54
- env :
55
- DEPLOYMENT_URL : ${{ steps.deploy.outputs.deployment-url }}
56
- run : echo $DEPLOYMENT_URL
52
+ command : pages deploy --branch main
You can’t perform that action at this time.
0 commit comments