Skip to content

Commit 81783bc

Browse files
committed
ci: replace github page by cloudflare page
1 parent 1c9ff99 commit 81783bc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/gh-pages.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ jobs:
4141
- name: Build
4242
run: cargo make build
4343
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v1
44+
uses: actions/upload-artifact@v4
4545
with:
4646
path: ./dist
4747

4848
deploy:
49-
environment:
50-
name: github-pages
51-
url: ${{ steps.deployment.outputs.page_url }}
5249
runs-on: ubuntu-latest
5350
needs: build
5451
steps:
55-
- name: Deploy to GitHub Pages
56-
id: deployment
57-
uses: actions/deploy-pages@v2
52+
- uses: actions/download-artifact@v4
53+
- name: Deploy
54+
uses: cloudflare/wrangler-action@v3
55+
with:
56+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
57+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
58+
command: pages deploy . --project-name=homepage

0 commit comments

Comments
 (0)