File tree Expand file tree Collapse file tree 3 files changed +17
-38
lines changed Expand file tree Collapse file tree 3 files changed +17
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ name: Deploy Jekyll site to Pages
9
9
on :
10
10
# Runs on pushes targeting the default branch
11
11
push :
12
- branches : ["main"]
12
+ branches : ["main"]
13
13
14
14
# Allows you to run this workflow manually from the Actions tab
15
15
workflow_dispatch :
43
43
- name : Setup Pages
44
44
id : pages
45
45
uses : actions/configure-pages@v5
46
+ - name : Set up Python
47
+ uses : actions/setup-python@v4
48
+ with :
49
+ python-version : ' 3.9'
50
+ - name : Install Python dependencies
51
+ run : |
52
+ python -m pip install --upgrade pip
53
+ pip install -r requirements.txt
54
+ - name : Generate calendar
55
+ run : python generate_calendar.py
46
56
- name : Build with Jekyll
47
57
# Outputs to the './_site' directory by default
48
58
run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
Original file line number Diff line number Diff line change 6
6
7
7
# ---- SETTINGS ----
8
8
TIMEZONE = "Europe/Berlin" # Change to your time zone, e.g. "America/New_York"
9
+ CALENDAR_NAME = "Cloud Native Linz Events"
10
+ CALENDAR_DESCRIPTION = "Meetup events for the Cloud Native Linz community"
9
11
10
12
# Load YAML
11
13
with open ("_data/events.yml" , "r" ) as f :
12
14
data = yaml .safe_load (f )
13
15
14
16
# Prepare calendar
15
17
cal = Calendar ()
16
- cal .add ("prodid" , "-//My GitHub Calendar//EN" )
18
+ cal .add ("prodid" , "-//Cloud Native Linz Calendar//EN" )
17
19
cal .add ("version" , "2.0" )
20
+ cal .add ("x-wr-calname" , CALENDAR_NAME ) # Calendar name (widely supported)
21
+ cal .add ("x-wr-caldesc" , CALENDAR_DESCRIPTION ) # Calendar description
22
+ cal .add ("name" , CALENDAR_NAME ) # Standard property for calendar name
18
23
19
24
tz = pytz .timezone (TIMEZONE )
20
25
You can’t perform that action at this time.
0 commit comments