Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 5661d0c

Browse files
authored
switch from cf to gh pages (#47)
1 parent da258f9 commit 5661d0c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@ jobs:
2727
node-version: 22
2828
cache: npm
2929

30-
- name: Trigger a new Cloudflare Pages deployment
30+
- name: Build project
3131
run: |
32-
curl --fail-with-body -X POST \
33-
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
34-
-H "Content-Type: application/json" \
35-
https://api.cloudflare.com/client/v4/accounts/${{ secrets.CLOUDFLARE_ACCOUNT_ID }}/pages/projects/spark-dashboard/deployments
32+
npm install
33+
npm run build
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: 'dist'
39+
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4
3643

3744
- if: failure()
3845
uses: slackapi/slack-github-action@v2.0.0

0 commit comments

Comments
 (0)