forked from SystemCrafters/systemcrafters.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.build.yml
More file actions
27 lines (25 loc) · 773 Bytes
/
.build.yml
File metadata and controls
27 lines (25 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
image: archlinux
packages:
- emacs-nox
oauth: pages.sr.ht/PAGES:RW
sources:
- https://git.sr.ht/~systemcrafters/site
- https://git.sr.ht/~daviwil/daviwil.com
environment:
site: systemcrafters.cc
tasks:
- build: |
# Generate site files
cd site
cp -R ../daviwil.com/public .
emacs --batch -l ./publish.el --funcall dw/publish
# Bundle the HTML site
cd public
tar -czf /home/build/html.tar.gz .
# Bundle the Gemini site
cd ../gemini
tar -czf /home/build/gemini.tar.gz .
- upload: |
tar -ztvf html.tar.gz
acurl --fail-with-body https://pages.sr.ht/publish/$site -Fcontent=@html.tar.gz
acurl --fail-with-body https://pages.sr.ht/publish/$site -Fcontent=@gemini.tar.gz -Fprotocol=GEMINI