Skip to content

Fixes for uniformity #45

Fixes for uniformity

Fixes for uniformity #45

Workflow file for this run

name: Publish
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Check style
run: |
poetry run black . --check
- name: Check flake8
run: |
poetry run flake8
- name: Generate
run: |
poetry run python festivus.py
- name: Publish
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
cd generated
sudo chown -R $(id -un) .
mv ../.git .
git branch -M gh-pages
git add -f .
git commit -m 'Deploy'
git push --force origin HEAD
if: github.ref == 'refs/heads/master' && github.event_name == 'push'