File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : ' Publish to PyPI'
2+
3+ on :
4+ workflow_run :
5+ workflows :
6+ - ' Lint and test'
7+ branches :
8+ - master
9+ types :
10+ - completed
11+
12+ jobs :
13+ build-and-publish :
14+ runs-on : ubuntu-latest
15+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Setup Python 3.9
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : 3.9
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install build twine
26+ - name : Build a binary wheel and a source tarball
27+ run : |
28+ python -m build --sdist --wheel --outdir dist/
29+ - name : Publish distribution to PyPI
30+ uses : pypa/gh-action-pypi-publish@master
31+ with :
32+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : ' Publish to Test PyPI'
2+
3+ on :
4+ workflow_run :
5+ workflows :
6+ - ' Lint and test'
7+ branches :
8+ - staging
9+ types :
10+ - completed
11+
12+ jobs :
13+ build-and-publish :
14+ runs-on : ubuntu-latest
15+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Setup Python 3.9
19+ uses : actions/setup-python@v2
20+ with :
21+ python-version : 3.9
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install build twine
26+ - name : Build a binary wheel and a source tarball
27+ run : |
28+ python -m build --sdist --wheel --outdir dist/
29+ - name : Publish distribution to Test PyPI
30+ uses : pypa/gh-action-pypi-publish@master
31+ with :
32+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
33+ repository_url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1- name : test and lint
1+ name : ' Lint and test '
22
33on :
44 push :
5- branches-ignore :
6- - master
75
86jobs :
9- test :
7+ test-and-lint :
108 runs-on : ubuntu-latest
119 env :
1210 PYTHONPATH : ./storages
You can’t perform that action at this time.
0 commit comments