Skip to content

Commit

Permalink
test systemcrafter's website publishing strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Herrmann committed Jan 14, 2024
1 parent b6fb857 commit 544a492
Show file tree
Hide file tree
Showing 81 changed files with 2,558 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")

((nil . ((compile-command . "FORCE=true emacs -Q --batch -l ./publish.el --funcall dw/publish")))
(org-mode . ((org-link-file-path-type . relative))))
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@ jobs:
- name: Check out
uses: actions/checkout@v1

- name: Check out the style repo
run: git clone --depth 1 https://git.sr.ht/~daviwil/daviwil.com daviwil.com

- name: Install Emacs
run: sudo apt install emacs-nox --yes
uses: purcell/setup-emacs@master
with:
version: 27.2

- name: Build the site
run: ./build.sh
run: |
cp -R daviwil.com/public .
emacs --batch -l ./publish.el --funcall dw/publish
- name: Link Checker
uses: lycheeverse/lychee-action@v1.0.8
with:
args: --verbose --no-progress ./public/**/*.html

- name: Publish generated content to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
Expand Down
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/.packages/
; Don't commit downloaded Emacs packages
.packages/

; Ignore the org-publish cache
.org-cache/

; Ignore shared content with daviwil.com
public/

; Ignore Gemini output
gemini/
Loading

0 comments on commit 544a492

Please sign in to comment.