-
Notifications
You must be signed in to change notification settings - Fork 22
34 lines (34 loc) · 1.17 KB
/
build.yaml
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
name: Build catalog
on:
push:
pull_request:
schedule:
# At 02:45 on Saturday https://crontab.guru/#45_2_*_*_6
- cron: "45 2 * * 6"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install --upgrade --requirement=requirements.txt
- name: Process catalog
run: python process-catalog.py
- name: Deploy Manuscript
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository == 'manubot/catalog'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: output
- name: Repository Dispatch
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository == 'manubot/catalog'
uses: peter-evans/repository-dispatch@v2
with:
repository: manubot/manubot.org
token: ${{ secrets.MANUBOT_ORG_BOT_PAT }}
event-type: catalog-update