Skip to content

Update _typos.toml

Update _typos.toml #4

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive # Fetch Hugo themes (if any)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Check for typos
uses: crate-ci/typos@master
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build Hugo site
env:
HUGO_ENV_GIT_COMMIT_HASH: ${{ github.sha }}
run: hugo --minify --gc --cleanDestinationDir --environment production
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
command: |
pages deploy public --project-name=${{ secrets.CLOUDFLARE_PROJECT_NAME }} --branch=${{ github.head_ref || github.ref_name }} --commit-dirty=true