Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/*