chore(ci): update submodules and reindex #1176
This file contains 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 Hugo from Obsidian notes | |
on: | |
push: | |
branches: | |
- main | |
- build-test | |
jobs: | |
publish_job: | |
runs-on: macos-latest | |
name: Publish Obsidian notes to Github pages | |
steps: | |
- name: Checkout contents repo | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.DWARVES_PAT }} | |
submodules: recursive | |
fetch-depth: 5 | |
- name: Install devbox | |
uses: jetpack-io/devbox-install-action@v0.11.0 | |
with: | |
enable-cache: true | |
devbox-version: 0.12.0 | |
- name: Run Build | |
run: devbox run build | |
env: | |
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
notify_job: | |
runs-on: ubuntu-latest | |
name: Notify Discord | |
needs: publish_job | |
steps: | |
- name: Sleep for 30 seconds | |
uses: jakejarvis/wait-action@master | |
with: | |
time: '30s' | |
- name: Discord notification | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
uses: Ilshidur/action-discord@master | |
with: | |
args: 'memo.d.foundation has been updated.' |