Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
romanin-rf committed Dec 18, 2023
1 parent 8739255 commit 16b98bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/docs-publing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches: [ "docs-source" ]
pull_request:
branches: [ "docs-source" ]
permissions: write-all
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -21,20 +22,18 @@ jobs:
run: |
python -m pip install -U pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Settings git
- name: Pull `docs`
run: |
git config --global user.name "Romanin";
git config --global user.email "[email protected]";
- name: Add submodule `docs`
run: |
git submodule add -b docs https://github.com/romanin-rf/SeaPlayer.git site;
- name: Clearing `docs`
cd site;
git pull;
cd ..;
- name: Clear `docs`
run: |
python clearing.py
- name: Building `docs`
- name: Build `docs`
run: |
mkdocs build
- name: Pushing `docs`
- name: Push `docs`
run: |
cd site;
git commit -a -m "Update docs";
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "site"]
path = site
url = https://github.com/romanin-rf/SeaPlayer.git
branch = docs
1 change: 1 addition & 0 deletions site
Submodule site added at 801e08

0 comments on commit 16b98bb

Please sign in to comment.