Skip to content

Commit

Permalink
An attempt to use wrangler-action instead of pages-action
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing authored Mar 7, 2024
1 parent 5c8eedb commit 423a886
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ jobs:
rm -rf html/build/dist/WEB-INF
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'agile-gdx'
directory: 'html/build/dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
workingDirectory: 'html/build/dist'
command: pages deploy --project-name='agile-gdx'
#uses: cloudflare/pages-action@1
#with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: 'agile-gdx'
# directory: 'html/build/dist'
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# wranglerVersion: '3'

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
Expand Down

0 comments on commit 423a886

Please sign in to comment.