Skip to content

Commit

Permalink
add github deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
julxyz committed Aug 20, 2023
1 parent 815b9f5 commit ad090c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pages-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: npm install && npm run build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: beansports-org
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ad090c7

Please sign in to comment.