Skip to content

Commit

Permalink
ci: update cloudflare action to nodejs 20 compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed May 2, 2024
1 parent c39e785 commit 68f283b
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/deploy-cfp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,36 @@ jobs:
--data '{"name":"${{ inputs.PROJECT_NAME || 'keeweb-site' }}", "production_branch":"${{ inputs.BRANCH || 'master' }}"}'
# ---------------------------------------------------------------------------------------
# Job > Publish > Checkout
# Job > Publish > Cloudflare Wrangler
# ---------------------------------------------------------------------------------------

- name: "☁️ CF › Publish KeeWeb.info"
uses: cloudflare/pages-action@v1
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_TOKEN }} # Cloudflare API Token at https://dash.cloudflare.com/profile/api-tokens
accountId: ${{ secrets.CF_ACCOUNT_ID }} # Cloudflare account ID available on right side of CF website
projectName: ${{ inputs.PROJECT_NAME || 'keeweb-site' }} # Project name assigned at creation. view on workers-and-pages section of CF website
directory: ${{ inputs.DIRECTORY_BUILD_OUTPUT || './' }} # Output directory for built website
gitHubToken: ${{ secrets.SELF_TOKEN_CL }} # Optional: Enable this if you want to have GitHub Deployments triggered
branch: ${{ inputs.BRANCH || 'master' }} # Branch website published to; by default this will be the branch which triggered this workflow
workingDirectory: ${{ inputs.DIRECTORY_ROOT || './' }} # Working directory
wranglerVersion: ${{ inputs.WRANGLER_VERSION || '3' }} # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
command: pages deploy ${{ inputs.DIRECTORY_BUILD_OUTPUT || './' }} --project-name=${{ inputs.PROJECT_NAME || 'keeweb-site' }} --commit-dirty=true

# ---------------------------------------------------------------------------------------
# Cloudflare Pages Action
#
# a new version has been supplied above to switch from
# cloudflare/pages-action@v1 -> cloudflare/wrangler-action@v3
# the new action uses NodeJS 20, instead of 16.
# ---------------------------------------------------------------------------------------

# - name: "☁️ CF › Publish KeeWeb.info"
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CF_TOKEN }} # Cloudflare API Token at https://dash.cloudflare.com/profile/api-tokens
# accountId: ${{ secrets.CF_ACCOUNT_ID }} # Cloudflare account ID available on right side of CF website
# projectName: ${{ inputs.PROJECT_NAME || 'keeweb-site' }} # Project name assigned at creation. view on workers-and-pages section of CF website
# directory: ${{ inputs.DIRECTORY_BUILD_OUTPUT || './' }} # Output directory for built website
# gitHubToken: ${{ secrets.SELF_TOKEN_CL }} # Optional: Enable this if you want to have GitHub Deployments triggered
# branch: ${{ inputs.BRANCH || 'master' }} # Branch website published to; by default this will be the branch which triggered this workflow
# workingDirectory: ${{ inputs.DIRECTORY_ROOT || './' }} # Working directory
# wranglerVersion: ${{ inputs.WRANGLER_VERSION || '3' }} # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`

# ---------------------------------------------------------------------------------------
# JOB > COMPLETE
Expand Down

0 comments on commit 68f283b

Please sign in to comment.