File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed
Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ permissions:
1111 id-token : write
1212 pages : write
1313
14+ env :
15+ PROJECT_NAME : surf-api
16+
1417jobs :
1518 build :
1619 runs-on : ubuntu-latest
@@ -70,14 +73,22 @@ jobs:
7073 - name : Unzip artifact
7174 run : unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.artifact }}" -d dir
7275
73- - name : Setup Pages
74- uses : actions/configure-pages@v4
75-
76- - name : Package and upload Pages artifact
77- uses : actions/upload-pages-artifact@v3
76+ - name : Publish to Cloudflare Pages
77+ uses : cloudflare/wrangler-action@v3
7878 with :
79- path : dir
79+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
80+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
81+ command : pages deploy cf-pages --project-name=${{ env.PROJECT_NAME }} --branch=main
82+ wranglerVersion : 3.101.0
8083
81- - name : Deploy to GitHub Pages
82- id : deployment
83- uses : actions/deploy-pages@v4
84+ # - name: Setup Pages
85+ # uses: actions/configure-pages@v4
86+ #
87+ # - name: Package and upload Pages artifact
88+ # uses: actions/upload-pages-artifact@v3
89+ # with:
90+ # path: dir
91+ #
92+ # - name: Deploy to GitHub Pages
93+ # id: deployment
94+ # uses: actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments