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 7efa78a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ jobs:
name: aslp-web-build
path: artifact

deploy:
needs: [ build ]
runs-on: ubuntu-latest
permissions:
deployments: write
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 7efa78a

Please sign in to comment.