Skip to content

Merge pull request #1 from benhalverson/dependabot/npm_and_yarn/wrang… #5

Merge pull request #1 from benhalverson/dependabot/npm_and_yarn/wrang…

Merge pull request #1 from benhalverson/dependabot/npm_and_yarn/wrang… #5

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: Test
run: npm test
- name: Build
run: npm install && npm run ci
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: YOUR_PROJECT_NAME # e.g. 'my-project'
# directory: YOUR_DIRECTORY_OF_STATIC_ASSETS # e.g. 'dist'
directory: dist/cloudflare
gitHubToken: ${{ secrets.GITHUB_TOKEN }}