mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-26 00:28:19 +01:00
.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:
parent
22b78ea149
commit
4e92f0b8cd
3
.github/workflows/pages.yml
vendored
3
.github/workflows/pages.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user