I manually export my agenda year-view periodically to ics and upload it to my site, where it is subscribed by google calendar. It works; but it takes enough time to draw a year view and export it to ics, I'd like to do this automatically via a bash script. How can I do this? Right now I do it manually in emacs as follows:
M-x agenda
vy
C-wcal.ics
and then run my upload script.