forked from fitnycdigitalinitiatives/onesearch-newbooks
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 889 Bytes
/
newbooks.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
name: newbooks
on:
workflow_dispatch: # enables you to run it manually
schedule:
- cron: "30 22 * * *" # runs at 22:00 UTC (5:00 PM CDT) everyday
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: execute py script
run: |
pip install --upgrade pip
pip install xmltodict
cd docs
echo -e "ALMA_API_KEY = '${{ secrets.ALMA_API_KEY }}'\nGB_API_KEY = '${{ secrets.GB_API_KEY }}'" > config.py
python new-books.py
- name: deploy to github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/gh-pages
force_orphan: true