Skip to content

Commit

Permalink
add cloudflare deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Sep 4, 2024
1 parent 0dc560d commit 14a9c4f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,23 @@ jobs:
name: aslp-web-build
path: artifact

deploy:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: aslp-web-build
path: result
- uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: result
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'

test:
needs: [ build ]
strategy:
Expand Down

0 comments on commit 14a9c4f

Please sign in to comment.