File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+
10
+ pypi :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Setup Python
15
+ uses : actions/setup-python@v1
16
+ with :
17
+ python-version : 3.7
18
+ - name : Install dependencies
19
+ run : |
20
+ python -m pip install --upgrade pip setuptools wheel
21
+ - name : Build
22
+ run : |
23
+ python setup.py bdist_wheel sdist --formats gztar
24
+ - name : Publish
25
+ uses : pypa/gh-action-pypi-publish@v1.1.0
26
+ with :
27
+ user : __token__
28
+ password : ${{ secrets.PYPI_PASSWORD }}
29
+
30
+ ghpages :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ with : # Allow push to org repo
35
+ persist-credentials : false
36
+ - name : Setup Python
37
+ uses : actions/setup-python@v1
38
+ with :
39
+ python-version : 3.7
40
+ - name : Install dependencies
41
+ run : |
42
+ python -m pip install --upgrade pip setuptools
43
+ python -m pip install -r doc-requirements.txt
44
+ - name : Build
45
+ run : |
46
+ python -m mkdocs build --clean --verbose
47
+ - name : Publish
48
+ uses : JamesIves/github-pages-deploy-action@releases/v3
49
+ with :
50
+ ACCESS_TOKEN : ${{ secrets.GHPAGES_TOKEN }}
51
+ REPOSITORY_NAME : Python-Markdown/Python-Markdown.github.io
52
+ BRANCH : master
53
+ FOLDER : site
You can’t perform that action at this time.
0 commit comments