Skip to content

Commit 69f66d3

Browse files
authored
GitHub: create static.yml (#3)
Signed-off-by: Christian Berendt <[email protected]>
1 parent 0f307aa commit 69f66d3

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/static.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Deploy calendar to Pages
3+
4+
"on":
5+
push:
6+
branches: ["main"]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v5
29+
- name: Setup Python
30+
uses: actions/setup-python@v4
31+
- name: Install dependencies
32+
run: pip install yaml2ics
33+
- name: Generate osism.ics
34+
run: yaml2ics main.yml > calendar/osism.ics
35+
- name: Copy README.md file
36+
run: cp README.md calendar/README.md
37+
- name: Upload osism.ics
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: calendar
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
osism.ics

0 commit comments

Comments
 (0)