Skip to content

Commit 9ec7e9d

Browse files
author
CI
committed
added back deployment automation logic
1 parent 5237abf commit 9ec7e9d

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: deploy-to-pypi
22

33
on:
4-
push:
5-
branch: [develop]
6-
# release:
7-
# types: [published]
4+
release:
5+
types: [published]
86

97
jobs:
108
release:
@@ -25,11 +23,11 @@ jobs:
2523
run: |
2624
python -m pip install --upgrade pip
2725
pip install wheel twine setuptools
28-
# - name: Package and Upload
29-
# env:
30-
# ADK_VERSION: ${{github.event.release.tag_name }}
31-
# TWINE_USERNAME: __token__
32-
# TWINE_PASSWORD: ${{secrets.TWINE_TOKEN }}
33-
# run: |
34-
# python3 setup.py sdist bdist_wheel --universal
35-
# twine upload -r pypi dist/*
26+
- name: Package and Upload
27+
env:
28+
ADK_VERSION: ${{github.event.release.tag_name }}
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{secrets.TWINE_TOKEN }}
31+
run: |
32+
python3 setup.py sdist bdist_wheel --universal
33+
twine upload -r pypi dist/*

0 commit comments

Comments
 (0)