Skip to content

Commit

Permalink
Update Docs deployment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
waylan committed Nov 2, 2023
1 parent 8e517de commit 5cbabe1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Ensure Changelog Entry Made
uses: dangoslen/changelog-enforcer@v3
with:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
Expand Down Expand Up @@ -49,9 +49,9 @@ jobs:
ghpages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
Expand All @@ -61,11 +61,14 @@ jobs:
- name: Build
run: |
python -m mkdocs build --clean --verbose
- name: Publish to GitHub Pages
- name: Publish
if: success()
uses: peaceiris/actions-gh-pages@v3
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.PAGES_DEPLOY_KEY }}
with:
deploy_key: ${{ secrets.PAGES_DEPLOY_KEY }}
external_repository: Python-Markdown/Python-Markdown.github.io
publish_branch: master
publish_dir: ./site
source-directory: 'site'
destination-github-username: 'Python-Markdown'
destination-repository-name: 'Python-Markdown.github.io'
user-name: ${{ github.actor }}
target-branch: master
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: yes
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/manual_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
ghpages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
Expand All @@ -22,9 +22,12 @@ jobs:
python -m mkdocs build --clean --verbose
- name: Publish
if: success()
uses: peaceiris/actions-gh-pages@v3
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.PAGES_DEPLOY_KEY }}
with:
deploy_key: ${{ secrets.PAGES_DEPLOY_KEY }}
external_repository: Python-Markdown/Python-Markdown.github.io
publish_branch: master
publish_dir: ./site
source-directory: 'site'
destination-github-username: 'Python-Markdown'
destination-repository-name: 'Python-Markdown.github.io'
user-name: ${{ github.actor }}
target-branch: master
10 changes: 5 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
TOXENV: ${{ matrix.tox-env }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -58,7 +58,7 @@ jobs:
run: python -m tox
- name: Upload Results
if: success()
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
Expand All @@ -77,9 +77,9 @@ jobs:
TOXENV: ${{ matrix.tox-env }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
check_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
Expand Down

0 comments on commit 5cbabe1

Please sign in to comment.