Skip to content

Commit 5cbabe1

Browse files
authored
Update Docs deployment
Switch to a different action (cpina/github-action-push-to-another-repository) which has worked in testing (see https://github.com/waylan/test-repo-source). Also updated the version of many actions in all workflows to eliminate various warnings we have been getting of late.
1 parent 8e517de commit 5cbabe1

File tree

6 files changed

+33
-27
lines changed

6 files changed

+33
-27
lines changed

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Ensure Changelog Entry Made
2222
uses: dangoslen/changelog-enforcer@v3
2323
with:

.github/workflows/deploy.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
pypi:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Setup Python
15-
uses: actions/setup-python@v1
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.11
1818
- name: Install dependencies
@@ -49,9 +49,9 @@ jobs:
4949
ghpages:
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v2
52+
- uses: actions/checkout@v4
5353
- name: Setup Python
54-
uses: actions/setup-python@v1
54+
uses: actions/setup-python@v4
5555
with:
5656
python-version: 3.11
5757
- name: Install dependencies
@@ -61,11 +61,14 @@ jobs:
6161
- name: Build
6262
run: |
6363
python -m mkdocs build --clean --verbose
64-
- name: Publish to GitHub Pages
64+
- name: Publish
6565
if: success()
66-
uses: peaceiris/actions-gh-pages@v3
66+
uses: cpina/github-action-push-to-another-repository@main
67+
env:
68+
SSH_DEPLOY_KEY: ${{ secrets.PAGES_DEPLOY_KEY }}
6769
with:
68-
deploy_key: ${{ secrets.PAGES_DEPLOY_KEY }}
69-
external_repository: Python-Markdown/Python-Markdown.github.io
70-
publish_branch: master
71-
publish_dir: ./site
70+
source-directory: 'site'
71+
destination-github-username: 'Python-Markdown'
72+
destination-repository-name: 'Python-Markdown.github.io'
73+
user-name: ${{ github.actor }}
74+
target-branch: master

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
markdown-link-check:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- uses: gaurav-nelson/github-action-markdown-link-check@v1
1717
with:
1818
use-quiet-mode: yes

.github/workflows/manual_deploy.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
ghpages:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Setup Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v4
1414
with:
15-
python-version: 3.7
15+
python-version: 3.11
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip setuptools
@@ -22,9 +22,12 @@ jobs:
2222
python -m mkdocs build --clean --verbose
2323
- name: Publish
2424
if: success()
25-
uses: peaceiris/actions-gh-pages@v3
25+
uses: cpina/github-action-push-to-another-repository@main
26+
env:
27+
SSH_DEPLOY_KEY: ${{ secrets.PAGES_DEPLOY_KEY }}
2628
with:
27-
deploy_key: ${{ secrets.PAGES_DEPLOY_KEY }}
28-
external_repository: Python-Markdown/Python-Markdown.github.io
29-
publish_branch: master
30-
publish_dir: ./site
29+
source-directory: 'site'
30+
destination-github-username: 'Python-Markdown'
31+
destination-repository-name: 'Python-Markdown.github.io'
32+
user-name: ${{ github.actor }}
33+
target-branch: master

.github/workflows/tox.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
TOXENV: ${{ matrix.tox-env }}
4646

4747
steps:
48-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v4
4949
- name: Setup Python ${{ matrix.python-version }}
50-
uses: actions/setup-python@v3
50+
uses: actions/setup-python@v4
5151
with:
5252
python-version: ${{ matrix.python-version }}
5353
- name: Install dependencies
@@ -58,7 +58,7 @@ jobs:
5858
run: python -m tox
5959
- name: Upload Results
6060
if: success()
61-
uses: codecov/codecov-action@v1
61+
uses: codecov/codecov-action@v3
6262
with:
6363
file: ./coverage.xml
6464
flags: unittests
@@ -77,9 +77,9 @@ jobs:
7777
TOXENV: ${{ matrix.tox-env }}
7878

7979
steps:
80-
- uses: actions/checkout@v2
80+
- uses: actions/checkout@v4
8181
- name: Setup Python
82-
uses: actions/setup-python@v2
82+
uses: actions/setup-python@v4
8383
with:
8484
python-version: 3.11
8585
- name: Install dependencies

.github/workflows/version_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
check_version:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Setup Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v4
1818
with:
1919
python-version: '3.11'
2020
- name: Install dependencies

0 commit comments

Comments
 (0)