mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
updates name and docs workflow
This commit is contained in:
parent
9044cbe223
commit
4ea155d207
1 changed files with 12 additions and 4 deletions
16
.github/workflows/python-publish.yml
vendored
16
.github/workflows/python-publish.yml
vendored
|
|
@ -1,8 +1,8 @@
|
|||
name: Upload Python Package to PyPI
|
||||
name: PyPI CI and docs
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
types: [ created ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
@ -71,14 +71,22 @@ jobs:
|
|||
- deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.2
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v2.3.2
|
||||
|
||||
- name: Restore docs environment and build docs
|
||||
run: |
|
||||
python dev.py -no-container --with-docs
|
||||
mkdocs build
|
||||
|
||||
- name: Commit documentation changes
|
||||
run: |
|
||||
git clone https://github.com/publichealthengland/coronavirus-dashboard-api-python-sdk.git --branch gh-pages --single-branch gh-pages
|
||||
git clone https://github.com/neutronX/django-markdownx.git --branch gh-pages --single-branch gh-pages
|
||||
rm -rf gh-pages/docs
|
||||
mkdir gh-pages/docs
|
||||
cp -r docs/* gh-pages/docs/
|
||||
|
|
|
|||
Loading…
Reference in a new issue