Skip to content

Commit

Permalink
Use official pipy to publish caraml-upi-protos (#3)
Browse files Browse the repository at this point in the history
Currently the generated Python package is published to test.pipy.org to test that the release pipeline is working.
The tag 0.1.0.rc1 was created to test this and successfully published to test.pipy.org
This PR is to publish Python package to official PiPy.
  • Loading branch information
aria authored Aug 17, 2022
1 parent 5e5b9b7 commit 86a1e54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: pull-request
on: pull_request
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: []
jobs:
build:
runs-on: ubuntu-latest
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ jobs:
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PIPY_USERNAME_TEST }}
TWINE_PASSWORD: ${{ secrets.PIPY_PASSWORD_TEST }}
TWINE_USERNAME: ${{ secrets.PIPY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PIPY_PASSWORD }}
working-directory: ./gen/python/grpc
run: |
tag=$(git describe --tags --always --first-parent)
sed -i -e "s|VERSION = \".*\"|VERSION = \"`echo "${tag//v}"`\"|g" ./caraml/upi/version.py
python setup.py sdist bdist_wheel
# Temporary target test,pipy.org
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*

0 comments on commit 86a1e54

Please sign in to comment.