-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec0bb24
commit d112efc
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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.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 for git | ||
run: | | ||
git config --global user.name "Romanin"; | ||
git config --global user.email "[email protected]"; | ||
- name: Clone `docs` | ||
run: | | ||
git clone -b docs https://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 origin HEAD:docs; | ||
cd ..; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Welcome to SeaPlayer | ||
|
||
## Description | ||
SeaPlayer is a player that works in the terminal. | ||
|
||
|