Skip to content

Update docs-publing.yml #6

Update docs-publing.yml

Update docs-publing.yml #6

Workflow file for this run

name: Docs Building & Pushing
on:
push:
branches: [ "docs-source" ]
pull_request:
branches: [ "docs-source" ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{secrets.MY_GITHUB_TOKEN}}
submodules: true
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install -U pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Settings git
run: |
- name: Clone `docs`
run: |
git clone -b docs git@github.com:romanin-rf/SeaPlayer.git site;
- name: Clearing `docs`
run: |
python clearing.py
- name: Building `docs`
run: |
mkdocs build
- name: Pushing `docs`
run: |
cd site;
git commit -a -m "Update docs";
git push;
cd ..;