Skip to content

Commit

Permalink
with wrangler pages
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalverson committed Sep 4, 2024
1 parent 98e6780 commit 61a6e36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm run build # Ensure this outputs to the `dist` directory

- name: Upload Build Artifact
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: dist
14 changes: 8 additions & 6 deletions .github/workflows/wrangler-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:

steps:
- name: Download Build Artifact
uses: actions/download-artifact@v4.1.8
uses: actions/download-artifact@v3
with:
name: build-artifact
path: dist

- name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
env:
WORKING_DIRECTORY: './dist'
run: wrangler pages deploy ./dist
# - name: Deploy to Cloudflare
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# env:
# WORKING_DIRECTORY: './dist'

0 comments on commit 61a6e36

Please sign in to comment.