.github/workflows/pages.yml: adjust branches

Run Python job steps on all branches, but only push to GitHub pages
from main.

See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
See: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
This commit is contained in:
Alan Orth 2021-12-14 14:09:58 +02:00
parent 22b78ea149
commit 4e92f0b8cd
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 1 additions and 2 deletions

View File

@ -2,8 +2,6 @@ name: Pages
on:
push:
branches:
- main
jobs:
parse:
@ -22,6 +20,7 @@ jobs:
run: poetry --version
pages:
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'main' }}
steps:
- uses: actions/checkout@v2
- name: Deploy