From 918a84302e77349a738e07168f0f8aa0bdb904ec Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 30 Jun 2023 14:04:43 +0200 Subject: [PATCH] site: Move domain setup to workflow --- .forgejo/workflows/deploy-dgnum.yaml | 6 ++++++ site/.domains | 2 -- ssg/ssg.hs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 site/.domains diff --git a/.forgejo/workflows/deploy-dgnum.yaml b/.forgejo/workflows/deploy-dgnum.yaml index 54f2ec3..7bbbf46 100644 --- a/.forgejo/workflows/deploy-dgnum.yaml +++ b/.forgejo/workflows/deploy-dgnum.yaml @@ -56,6 +56,12 @@ jobs: git add . git diff-index --quiet HEAD || git commit --message "Automatic pages update from $ORIGIN_COMMIT" + echo "[+] Adding .domains file" + cat << EOL > "$GIT_REPOSITORY/.domains" + dgnum.eu + dev.dgnum.eu + EOL + echo "[+] Pushing update" git push "$GIT_CMD_REPOSITORY" --set-upstream main env: diff --git a/site/.domains b/site/.domains deleted file mode 100644 index 3885e1b..0000000 --- a/site/.domains +++ /dev/null @@ -1,2 +0,0 @@ -dgnum.eu -dev.dgnum.eu diff --git a/ssg/ssg.hs b/ssg/ssg.hs index 25659dc..d679558 100644 --- a/ssg/ssg.hs +++ b/ssg/ssg.hs @@ -75,7 +75,7 @@ main = hakyll $ do poles <- extractMeta "poles" -- Static files - match ("vendor/**" .||. "images/**" .||. "documents/**" .||. ".domains" .||. filePattern) $ do + match ("vendor/**" .||. "images/**" .||. "documents/**" .||. filePattern) $ do route idRoute compile copyFileCompiler