@@ -98,12 +98,38 @@ jobs:
9898 with :
9999 instance : ${{ env.INSTANCE }}
100100
101- deploy :
101+ # deploy:
102+ # environment:
103+ # name: cloudflare-pages
104+ # url: ${{ steps.deployment.outputs.page_url }}
105+ # Requires the build job results
106+ # needs: [build, test]
107+ # runs-on: ubuntu-latest
108+ # steps:
109+ # - name: Download artifact
110+ # uses: actions/download-artifact@v4
111+ # with:
112+ # name: docs
113+ # path: artifacts
114+
115+ # - name: Unzip artifact
116+ # run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.artifact }}" -d cf-pages
117+
118+ # - name: Publish to Cloudflare Pages
119+ # uses: cloudflare/[email protected] 120+ # with:
121+ # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
122+ # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
123+ # projectName: community-server-docs
124+ # directory: cf-pages
125+ # branch: main
126+ # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
127+ # wranglerVersion: '3.4.1'
128+
129+ deploy2 :
102130 environment :
103131 name : cloudflare-pages
104132 url : ${{ steps.deployment.outputs.page_url }}
105- # Requires the build job results
106- needs : [build, test]
107133 runs-on : ubuntu-latest
108134 steps :
109135 - name : Download artifact
@@ -116,15 +142,13 @@ jobs:
116142 run : unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.artifact }}" -d cf-pages
117143
118144 - name : Publish to Cloudflare Pages
119- uses : cloudflare/pages -action@v1.5.0
145+ uses : cloudflare/wrangler -action@v3
120146 with :
121147 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
122148 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
123149 projectName : community-server-docs
124150 directory : cf-pages
125151 branch : main
126- # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
127- # wranglerVersion: '3.4.1'
128152
129153 publish-indexes :
130154 needs : [ build, test, deploy ]
0 commit comments