From 1731cbf1e4daa759dae1214fa74b56b7b115c0ba Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 16 Aug 2018 23:22:24 +0200 Subject: [PATCH] Ensure all.ics is copied to public/ after regeneration --- .gitlab-ci.yml | 1 + build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5da441..bfae8eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,6 +35,7 @@ build_calendar: - apk --no-cache update - pip install -r requirements.txt - python tools/merge_cals.py + - cp static/all.ics public/all.ics - upcoming="$(python tools/gen_upcoming.py static/all.ics 14 5|tr '\n' ' ')" && sed -i "s#CALENDAR#$upcoming#g" public/index.html deploy_staging: diff --git a/build.sh b/build.sh index bdd69d1..2229095 100755 --- a/build.sh +++ b/build.sh @@ -3,4 +3,5 @@ hugo tools/merge_cals.py upcoming="$(tools/gen_upcoming.py static/all.ics 14 5|tr '\n' ' ')" +cp static/all.ics public/all.ics sed -i "s#CALENDAR#$upcoming#g" public/index.html