Merge pull request #1 from openzfs/automate
Automate PR syntax check and publish on commit
This commit is contained in:
21
.github/workflows/publish.yml
vendored
Normal file
21
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Publish Github Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: ammaraskar/sphinx-action@master
|
||||||
|
with:
|
||||||
|
pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt"
|
||||||
|
docs-folder: "docs/"
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./docs/_build/html
|
||||||
13
.github/workflows/pull_request.yml
vendored
Normal file
13
.github/workflows/pull_request.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
name: Pull Request Docs Check
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: ammaraskar/sphinx-action@master
|
||||||
|
with:
|
||||||
|
pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt"
|
||||||
|
docs-folder: "docs/"
|
||||||
Reference in New Issue
Block a user