pull/64/head
Eric Nemchik 2022-11-28 00:36:48 +00:00
rodzic 0c7126faed
commit c5e5de86f4
2 zmienionych plików z 38 dodań i 12 usunięć

Wyświetl plik

@ -1,24 +1,49 @@
name: Deploy docs to GitHub Pages via mkdocs
name: Build mkdocs and deploy to GitHub Pages
on:
push:
branches:
- mkdocs
on: [push, pull_request]
jobs:
deploy:
name: Deploy docs
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-python@v2.2.1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: cp README.md docs/
# temp line for test conversion repo
- run: |
cp README.md docs/index.md
cp -R general docs/
cp -R images docs/
cp -R FAQ.md docs/
- run: mkdocs gh-deploy --force
- run: mkdocs build
deploy:
if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main", "refs/heads/mkdocs"]'), github.ref)
needs: build
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: |
cp README.md docs/index.md
cp -R general docs/
cp -R images docs/
cp -R FAQ.md docs/
- run: mkdocs gh-deploy --force

1
.gitignore vendored
Wyświetl plik

@ -1 +1,2 @@
.cache
site/