feat(actions): setup dependabot #34
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: Publish site on GitHub Pages | |
on: | |
push: | |
branches: | |
- source | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Clone current repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install emacs | |
run: | | |
DEBIAN_FRONTEND=noninteractive sudo apt install --yes emacs-nox | |
- name: Setup Timezone | |
run: | | |
sudo timedatectl set-timezone Europe/Madrid | |
sudo dpkg-reconfigure --frontend noninteractive tzdata | |
- name: Render Markdown content | |
run: | | |
emacs content.org --batch --load=export.el --funcall=org-hugo-export-all-wim-to-md | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: '0.139.4' | |
# extended: true | |
- name: Build static site with hugo | |
run: hugo --minify | |
- name: Publish static site on gh-pages branch | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
publish_branch: gh-pages | |
force_orphan: true |