Skip to content

Commit 7272a2d

Browse files
committed
Create a separate publish action that can be run manually...hopefully
1 parent 89ff66d commit 7272a2d

File tree

2 files changed

+37
-30
lines changed

2 files changed

+37
-30
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,6 @@ on:
66
- '*'
77

88
jobs:
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

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)