-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (42 loc) · 1.17 KB
/
generate_all.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
35
36
37
38
39
40
41
42
name: generate_all
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
#
jobs:
generate_all:
if: github.repository_owner == 'DataTalksClub'
runs-on: "ubuntu-latest"
steps:
- name: install chromium
run: |
sudo apt-get update
sudo apt-get install -y chromium-browser libxss1 \
fonts-ipafont-gothic fonts-wqy-zenhei \
fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
--no-install-recommends
- run: chromium-browser --version
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- uses: actions/checkout@v2
- name: pipenv install
run: |
pip install pipenv
pipenv install
- name: npm install
run: |
(cd previews && \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install)
- name: make all
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
AIRTABLE_DATABASE: ${{ secrets.AIRTABLE_DATABASE }}
run: |
sudo ln -s `which bash` /bin/gitbash
make all
- run: |
ls
git status
- uses: EndBug/add-and-commit@v8