.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

View File

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