File tree Expand file tree Collapse file tree 3 files changed +72
-1
lines changed
Expand file tree Collapse file tree 3 files changed +72
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Pypi Test Build and Upload
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ build :
9+
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@master
14+ - name : Set up Python 3.9 for build
15+ uses : actions/setup-python@v1
16+ with :
17+ python-version : 3.9
18+
19+ - name : Install pypa/build
20+ run : >-
21+ python -m
22+ pip install
23+ build
24+ --user
25+ - name : Build binary wheel and source tarball
26+ run : >-
27+ python -m
28+ build
29+ --sdist
30+ --wheel
31+ --outdir dist/
32+ - name : Publish to test Pypi
33+ if : ${{github.repository == 'urbanairship/python-library-dev'}}
34+ uses : pypa/gh-action-pypi-publish@master
35+ with :
36+ password : ${{ secrets.PYPI_TEST_TOKEN }}
37+ repository_url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1+ name : Release Publish and Upload
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@master
12+ - name : Set up Python 3.9 for build
13+ uses : actions/setup-python@v1
14+ with :
15+ python-version : 3.9
16+
17+ - name : Install pypa/build
18+ run : >-
19+ python -m
20+ pip install
21+ build
22+ --user
23+ - name : Build binary wheel and source tarball
24+ run : >-
25+ python -m
26+ build
27+ --sdist
28+ --wheel
29+ --outdir dist/
30+ - name : Publish to Pypi
31+ if : ${{github.repository == 'urbanairship/python-library-dev'}}
32+ uses : pypa/gh-action-pypi-publish@master
33+ with :
34+ password : ${{ secrets.PYPI_TOKEN_URBANAIRSHIP }}
Original file line number Diff line number Diff line change 1- name : Python package
1+ name : Python Test
22
33on : [push]
44
You can’t perform that action at this time.
0 commit comments