Skip to content

Commit 2c94402

Browse files
committed
chore(ci): Add cloudflare mirror
1 parent 4380f5b commit 2c94402

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,29 @@ jobs:
7474
- name: Deploy to GitHub Pages
7575
id: deployment
7676
uses: actions/deploy-pages@v4
77+
78+
deploy-cloudflare:
79+
runs-on: ubuntu-latest
80+
needs: build
81+
steps:
82+
- name: Checkout
83+
uses: actions/checkout@v4
84+
85+
- name: Download artifact
86+
uses: actions/download-artifact@v3
87+
with:
88+
name: github-pages
89+
path: ./dist
90+
91+
- name: Extract artifact
92+
run: |
93+
tar -xf ./dist/artifact.tar -C ./dist
94+
rm ./dist/artifact.tar
95+
96+
- name: Deploy to Cloudflare Pages
97+
uses: cloudflare/pages-action@v1
98+
with:
99+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
100+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
101+
projectName: mcpm-sh
102+
directory: ./dist

0 commit comments

Comments
 (0)