This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Gatsby Build #389
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Gatsby Build | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "10 1 * * *" | |
| push: | |
| branches-ignore: | |
| - main | |
| - staging | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| # Set up Node.js for the Gatsby build | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| # Cache dependencies to speed up builds | |
| - name: Cache Node modules | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| # Install dependencies and build the Gatsby site | |
| - name: Install dependencies and build site | |
| run: | | |
| npm ci | |
| npm run build | |