mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2025-06-22 00:01:09 +02:00
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
32 lines
727 B
YAML
32 lines
727 B
YAML
name: Pages
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
parse:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
- name: Install Poetry
|
|
uses: abatilo/actions-poetry@v2.1.4
|
|
poetry-version: 1.1
|
|
- name: Poetry version
|
|
run: poetry --version
|
|
pages:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.ref_name == 'main' }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./site/docs
|
|
publish_branch: site
|