Action to publish iCal calendars

Hi!!
i´ve surfing a lot looking for this, but couldn´t find it so I wish to know if there´s a way to auto-sync iCal calendars to a custom web server (not .mac) like this:

a) At Mac os login/startup,
b) publish iCal calendar to custom web server

or

a) at login,
b) export iCal Calendar
c) upload with transmit to web server

Is it posible to do this? Has anyone done something similar? I was wondering if any action can be triggered by a time event, like " At 12 o´clock, publish and sync, etc"

thanks!