name: Upload Python Package on: release: types: [created] jobs: deploy: 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 --upgrade pip pip install setuptools wheel twine sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./setup.py sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./bucketstore.py - name: build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USER }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel twine upload dist/*