update-and-publish #3599
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: update-and-publish | |
| on: | |
| schedule: | |
| - cron: '0 */12 * * *' # every 12 hours | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: install just | |
| uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b | |
| - name: install dependencies | |
| run: | | |
| just install | |
| - name: generate markdown | |
| run: | | |
| git config --global --add safe.directory '*' | |
| just bips | |
| just tailwind | |
| just static | |
| just generate | |
| - name: build site | |
| run: | | |
| wget -q https://github.com/getzola/zola/releases/download/v0.21.0/zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz | |
| tar xzf zola*.tar.gz | |
| cd web | |
| ../zola build | |
| cd .. | |
| rm -rf zola* | |
| - name: run pagefind | |
| run: | | |
| just pagefind | |
| - name: commit and push | |
| uses: EndBug/[email protected] | |
| with: | |
| default_author: github_actions | |
| branch: master | |
| message: 'update bips submodule and build' | |
| push: true |