Skip to content

spellcheck_website #410

spellcheck_website

spellcheck_website #410

Workflow file for this run

# This is workflow for spell checking using PySpelling lib (https://pypi.org/project/pyspelling/)
name: spellcheck_website
on:
# run 2 weekdays at ~noon MT
schedule:
- cron: '31 17 * * 2,4'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Install astro modules
run: cd astro && npm ci
# commenting these out because for now we aren't using compress to compress images. When we go back to that, we'll need to uncomment these
#- name: Uninstall astro-compress to reduce build time , saves about 66% of time
#run: cd astro && npm uninstall astro-compress
#- name: Unconfigure compress
#run: sed '/import compress from "astro-compress";/d' astro/astro.config.mjs |sed '/compress(),/d' > tmpconfig && mv tmpconfig astro/astro.config.mjs
- name: Build astro site
run: cd astro && npm run build
# Spellcheck
- uses: igsekor/pyspelling-any@v0.0.2
name: Spellcheck