tweaking build script. - gopherhole - My website source code.
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit ac81e818c6d8232a0e79850b229e5876166657ef
(DIR) parent 8c16ddbf89ee6580c014508c92079b5a863a58d0
(HTM) Author: Jay Scott <me@jay.scot>
Date: Tue, 13 Sep 2022 15:13:58 +0100
tweaking build script.
Diffstat:
M .build.yml | 7 ++++---
M .gitignore | 1 +
M templates/_default/index.gmi | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/.build.yml b/.build.yml
@@ -11,9 +11,10 @@ tasks:
kiln build
- package: |
cd $site
- tar -C public -cvz . > ../site.tar.gz
+ tar -C public --exclude="*.html" -exclude"robots.txt" -cvz . > ../site-gemini.tar.gz
+ tar -C public -cvz *.html robots.txt > ../site-html.tar.gz
- upload: |
- hut pages publish -d $site site.tar.gz
+ hut pages publish -d $site site-html.tar.gz
acurl -f https://pages.sr.ht/publish/$site \
- -Fcontent=@site.tar.gz \
+ -Fcontent=@site-gemini.tar.gz \
-Fprotocol=GEMINI
(DIR) diff --git a/.gitignore b/.gitignore
@@ -1 +1,2 @@
public/
+drafts/
(DIR) diff --git a/templates/_default/index.gmi b/templates/_default/index.gmi
@@ -1,6 +1,6 @@
```
- J A Y . S C O T
+J A Y . S C O T
```