Skip to content

Commit

Permalink
adding cloudflare pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
priom committed Dec 12, 2023
1 parent 26667e1 commit 53bbd54
Show file tree
Hide file tree
Showing 3 changed files with 2,663 additions and 4,572 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cf-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CloudFlare Deploy
on: [push]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: '18'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: lodestar-landing
directory: ./build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 53bbd54

Please sign in to comment.