Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
* Run on all pushes, but only publish on master branch
* Check style
  • Loading branch information
alexpdp7 committed Mar 27, 2024
1 parent b21e220 commit b88d954
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Publish
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
Expand All @@ -16,6 +14,9 @@ jobs:
run: |
python -m pip install poetry
poetry install --no-dev
- name: Check style
run: |
poetry run black . --check
- name: Generate
run: |
poetry run python festivus.py
Expand All @@ -30,3 +31,4 @@ jobs:
git add -f .
git commit -m 'Deploy'
git push --force origin HEAD
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

0 comments on commit b88d954

Please sign in to comment.