Update My First Tech Talk: The Journey from Panic to Presentation.md #314
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: Github Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Clone Org-mode exporter | |
run: git clone https://github.com/kaushalmodi/ox-hugo.git ox-hugo | |
- name: Setup emacs | |
uses: purcell/setup-emacs@master | |
with: | |
version: 28.1 | |
- name: Add ox-hugo directory to load-path | |
run: emacs --batch --eval="(add-to-list 'load-path \"./ox-hugo\") && (require 'ox-hugo)" | |
# - name: Cd into the directory | |
# run: cd "$(pwd)/ox-hugo" | |
# - name: echo directory | |
# run: echo "$(pwd)/ox-hugo" | |
# - name: Load ox-hugo package | |
# run: emacs --batch --eval="(require 'ox-hugo)" | |
# - name: Clone Org-mode exporter | |
# run: git clone https://github.com/kaushalmodi/tomelr tomelr | |
# - name: Export Org file to Markdown | |
# run: emacs ./config.org --batch -L tomelr -L ./ox-hugo -L ox-hugo.el --eval="(org-hugo-export-wim-to-md)" --kill | |
# - name: Convert org files to hugo | |
# run: make org2hugo | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.119.0' | |
extended: true | |
- name: Build | |
run: hugo --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_branch: main | |
# BRANCH: main | |
publish_dir: ./public | |
# keep_files: true | |
cname: codeklutz.com | |