Theme Update #943
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: "Theme Update" | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| update-theme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| ref: main | |
| # Setup mise | |
| - uses: jdx/mise-action@v3 | |
| - name: Install dependencies | |
| run: | | |
| mise run install # install theme dependency | |
| - name: Update theme to latest commit | |
| run: | | |
| mise run update-to-main | |
| - name: Build | |
| run: | | |
| # build the site | |
| hugo --minify | |
| # remove file generated by the build | |
| rm -rf public/ | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| base: main | |
| title: Update theme | |
| labels: automerge |