Main #1846
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: Main | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "30 2 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Freeze HTML | |
run: | | |
python pyladies_cz.py freeze --verbose | |
- if: ${{ github.ref == 'refs/heads/master' }} | |
name: Deploy | |
run: | | |
python pyladies_cz.py deploy --no-freeze --push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |