Skip to content

Commit

Permalink
feat: Pypi publish ghub actions (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
software-dov committed Feb 19, 2021
1 parent 1157a76 commit 4c967b0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pypi-upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Upload Python Package to PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: python -m pip install twine
- name: Package and upload modulee
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: release-please

on:
push:
branches:
- master

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v1.3.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: python
package-name: proto-plus

0 comments on commit 4c967b0

Please sign in to comment.