chore: untrack .DS_Store and ignore it recursively #18
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: Deploy CalCOFI Usage (Hugo → GitHub Pages) | |
| # Source edits only (layouts, CSS, registry). The daily data refresh builds and | |
| # deploys itself — see refresh.yml. | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "static/data/**" # data commits are deployed by refresh.yml | |
| - "data/usage/**" | |
| - "content/products/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: "0.163.3" | |
| extended: true | |
| - uses: actions/configure-pages@v5 | |
| - run: hugo --gc --minify | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./public | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |