File tree Expand file tree Collapse file tree 2 files changed +37
-30
lines changed Expand file tree Collapse file tree 2 files changed +37
-30
lines changed Original file line number Diff line number Diff line change 66 - ' *'
77
88jobs :
9-
10- documents :
11- strategy :
12- max-parallel : 4
13- matrix :
14- python-version : ['3.13']
15-
16- runs-on : ubuntu-latest
17-
18- steps :
19- - uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
22- - name : Set up Python ${{ matrix.python-version }}
23- uses : actions/setup-python@v5
24- with :
25- python-version : ${{ matrix.python-version }}
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade pip build
29- python -m pip install -r requirements/docs.txt
30- - name : Deploy documents
31- run : |
32- git config user.name ${{ secrets.GH_USER }}
33- git config user.email "${{ secrets.GH_EMAIL }}"
34- git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/facelessuser/pymdown-extensions.git"
35- git fetch gh-token && git fetch gh-token gh-pages:gh-pages
36- python -m mkdocs gh-deploy -v --clean --remote-name gh-token
37- git push gh-token gh-pages
38-
399 build :
4010 runs-on : ubuntu-latest
4111
Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ workflow_dispatch :
8+
9+ jobs :
10+ documents :
11+ strategy :
12+ max-parallel : 4
13+ matrix :
14+ python-version : ['3.13']
15+
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip build
29+ python -m pip install -r requirements/docs.txt
30+ - name : Deploy documents
31+ run : |
32+ git config user.name ${{ secrets.GH_USER }}
33+ git config user.email "${{ secrets.GH_EMAIL }}"
34+ git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/facelessuser/pymdown-extensions.git"
35+ git fetch gh-token && git fetch gh-token gh-pages:gh-pages
36+ python -m mkdocs gh-deploy -v --clean --remote-name gh-token
37+ git push gh-token gh-pages
You can’t perform that action at this time.
0 commit comments