-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.31 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Website
on:
push:
branches:
- main
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
calendar_sync:
runs-on: ubuntu-latest
name: Sync Calendar
steps:
- uses: acm-uic/calsync@main
with:
discord-guild-id: ${{ secrets.DISCORD_EVENTS_SYNC_DISCORD_GUILD_ID }}
discord-bot-token: ${{ secrets.DISCORD_EVENTS_SYNC_DISCORD_BOT_TOKEN }}
discord-application-id: ${{ secrets.DISCORD_EVENTS_SYNC_DISCORD_APPLICATION_ID }}
google-calendar-id: ${{ secrets.DISCORD_EVENTS_SYNC_GOOGLE_CALENDAR_CALENDAR_ID }}
google-api-key: ${{ secrets.DISCORD_EVENTS_SYNC_GOOGLE_CALENDAR_API_KEY }}
publish:
runs-on: ubuntu-latest
name: Publish to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- name: Check out
uses: actions/checkout@v1
- name: Install pandoc and make
run: sudo apt install pandoc make --yes
- name: Install XSLTProc
run: sudo apt install xsltproc
- name: One Make to Rule them all
run: make all
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4