-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (28 loc) · 901 Bytes
/
mkdocs.yml
File metadata and controls
33 lines (28 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
- name: Deploy docs (1)
run: |
git config --global user.name "albop"
git config --global user.email "albop@users.noreply.github.com"
git remote rm origin
git remote add origin https://x-access-token:${PERSONAL_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
poetry install
poetry run mkdocs gh-deploy --config-file ${GITHUB_WORKSPACE}/mkdocs.yml --force --verbose
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}