Skip to content

Set paths in CI scripts for pull_request section #19

Set paths in CI scripts for pull_request section

Set paths in CI scripts for pull_request section #19

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- '*'
paths:
- mkdocs/**
- mkdocs.yml
- .github/workflows/gh-pages-deploy.yml
pull_request:
types: [opened, synchronize, reopened]
paths:
- mkdocs/**
- mkdocs.yml
- .github/workflows/gh-pages-deploy.yml
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r mkdocs/requirements.txt
- name: Build and Deploy pages - fork
if: github.event_name == 'push' && github.event.repository.fork == true
run: |
mkdocs gh-deploy --force
- name: Build and Deploy pages - k0rdent/catalog
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
mkdocs gh-deploy --force