File tree Expand file tree Collapse file tree 3 files changed +53
-6
lines changed
Expand file tree Collapse file tree 3 files changed +53
-6
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ improved.
1818
1919
2020
21- ## Example
21+ ## Example deployments
2222
2323The CodeRefinery calendar
2424* [ Built calendar site] ( https://coderefinery.github.io/calendar/ )
25- (main landing page for most projects )
25+ (the auto-generated landing page)
2626* [ Source repository] ( https://github.com/coderefinery/calendar )
2727* Optional: [ Calendars inserted into
2828 website] ( https://coderefinery.org/calendars/ ) ([ source] ( https://github.com/coderefinery/coderefinery.org/blob/main/content/calendars.md ) )
Original file line number Diff line number Diff line change 1+ # CC-0 (public domain)
2+ # but please link to the source so that people can more easily reuse
3+ # (if relevant)
4+
5+ name : git-calendar
6+ description : Manage multiple branches in gh-pages
7+
8+ inputs :
9+ calendar_dir :
10+ description : ' Input calendar directory (default calendars, globs *.yaml from there)'
11+ default : ' calendars'
12+ output_dir :
13+ description : ' Output directory (default output)'
14+ default : ' output'
15+ # extra_options:
16+ # description: extra options to git-calendar build
17+ # default: '-i/index.html -b out/body.html'
18+ index_file :
19+ default : index.html
20+ text_timezones :
21+ description : >
22+ Extra options to be added to make txt files of
23+ calendar contents. Example: --timezone=Europe/Helsinki --timezone=Europe/Stockholm
24+ pages_deploy :
25+ description : " Deploy to GitHub pages. Use only if you don't have another pages deployment. Default: true."
26+ default : true
27+
28+ runs :
29+ using : " composite"
30+ steps :
31+ - name : Set up Python
32+ uses : actions/setup-python@v5
33+ with :
34+ python-version : ' 3.x'
35+ - name : Install dependencies
36+ shell : bash
37+ run : |
38+ #pip install https://github.com/coderefinery/git-calendar/archives/main.zip
39+ pip install ${{ github.action_path }}
40+ - name : build
41+ shell : bash
42+ run : |
43+ git-calendar ${{ inputs.calendar_dir }}/*.yaml -o ${{ inputs.output_dir}} ${{ inputs.text_timezones}} --edit-link=https://github.com/$GITHUB_REPOSITORY ${{ inputs.index_file && inputs.output_dir + '/' + inputs.index_file }}
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v4
46+ with :
47+ path : ${{ inputs.output_dir }}
48+ - name : Deploy to GitHub Pages
49+ uses : actions/deploy-pages@v4
50+ if : ${{ inputs.pages_deploy }}
51+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments