generate_all #873
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.9' | |
- 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 |