Skip to content

Commit de18263

Browse files
committed
Add cloudflare pages action
1 parent 3822c12 commit de18263

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy to GitHub Pages and Cloudflare Pages
22

33
on:
44
# Trigger the workflow every time you push to the `main` branch
@@ -36,4 +36,19 @@ jobs:
3636
steps:
3737
- name: Deploy to GitHub Pages
3838
id: deployment
39-
uses: actions/deploy-pages@v4
39+
uses: actions/deploy-pages@v4
40+
41+
deploy-cloudflare:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
timeout-minutes: 60
45+
steps:
46+
- name: Publish
47+
uses: cloudflare/pages-action@v1
48+
with:
49+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
50+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
51+
projectName: malikihsanfathurrahman
52+
directory: dist
53+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
54+

0 commit comments

Comments
 (0)