Skip to content

Commit 8fb9855

Browse files
authored
IStart publishing on PyPI
1 parent 34ea9d3 commit 8fb9855

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Continuous Deployment
22
on: [push]
33
jobs:
4-
Minikube:
4+
build-n-publish-docker:
55
runs-on: ubuntu-latest
66
services:
77
docker:
@@ -50,3 +50,32 @@ jobs:
5050
bash .travis.sh script
5151
$HOME/bin/travis_ci_operator.sh docker-login
5252
bash .travis.sh deploy
53+
build-n-publish-pypy:
54+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
55+
name: Build and publish CCO to PyPI
56+
runs-on: ubuntu-18.04
57+
steps:
58+
- uses: actions/checkout@master
59+
- name: Set up Python 3.7
60+
uses: actions/setup-python@v1
61+
with:
62+
python-version: 3.7
63+
- name: Install pypa/build
64+
run: >-
65+
python -m
66+
pip install
67+
build
68+
--user
69+
- name: Build a binary wheel and a source tarball
70+
run: >-
71+
python -m
72+
build
73+
--sdist
74+
--wheel
75+
--outdir dist/
76+
.
77+
- name: Publish CCO to PyPI
78+
if: startsWith(github.ref, 'refs/tags')
79+
uses: pypa/gh-action-pypi-publish@master
80+
with:
81+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)