Skip to content

Update actions/checkout action to v4 #2

Update actions/checkout action to v4

Update actions/checkout action to v4 #2

on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: npm install && npm run build

Check failure on line 14 in .github/workflows/pages-deployment.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pages-deployment.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
- 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'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}