fix: render dates client-side in browser timezone (#34) #4
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: Build pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'posts/*.md' | |
| - 'authors/*.md' | |
| - 'build.js' | |
| - 'package.json' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm ci | |
| - run: node build.js | |
| - name: Commit generated files | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add index.html sitemap.xml posts/ tags/ authors/ | |
| git diff --staged --quiet || (git commit -m "build: regenerate all pages [skip ci]" && git push) |