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