Ensure all.ics is copied to public/ after regeneration
This commit is contained in:
parent
18c0af1b2f
commit
1731cbf1e4
2 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
1
build.sh
1
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
|
||||
|
|
Reference in a new issue