mirror of
https://github.com/linkedin/school-of-sre
synced 2026-07-06 18:30:32 +00:00
add new workflow for build mkdocs on PRs
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build mkdocs
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v6
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
mkdocs build
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.venv
|
.venv
|
||||||
site/
|
site/
|
||||||
|
.vscode/
|
||||||
Reference in New Issue
Block a user