From 9d3f80e500910d66ff8bd467e65f46e3a00e94c7 Mon Sep 17 00:00:00 2001 From: Pradithya Aria Date: Tue, 16 Aug 2022 13:22:07 +0800 Subject: [PATCH 1/2] Publish caraml-upi-protos to official pipy --- .github/workflows/publish-python.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-python.yaml b/.github/workflows/publish-python.yaml index ba51b27..39f0829 100644 --- a/.github/workflows/publish-python.yaml +++ b/.github/workflows/publish-python.yaml @@ -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/* From c18e3c82b6c45431378255b25d1cfecb56907efc Mon Sep 17 00:00:00 2001 From: Pradithya Aria Date: Tue, 16 Aug 2022 13:24:15 +0800 Subject: [PATCH 2/2] Run CI on merge to main branch --- .github/workflows/{pull-request.yaml => ci.yaml} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename .github/workflows/{pull-request.yaml => ci.yaml} (94%) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/ci.yaml similarity index 94% rename from .github/workflows/pull-request.yaml rename to .github/workflows/ci.yaml index 5252ee2..fa513bf 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/ci.yaml @@ -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