Skip to content

chore: Upgrade checkout action and apply its LFS #95

chore: Upgrade checkout action and apply its LFS

chore: Upgrade checkout action and apply its LFS #95

on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
env:
PUBLIC_GOOGLEANALYTIC_ID: ${{ vars.PUBLIC_GOOGLEANALYTIC_ID }}
PUBLIC_YOUTUBEAPIKEY: ${{ secrets.YOUTUBEAPIKEY }}
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: install packages and 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: astro-blog
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}