From 0f33d5ce790c57fda87ffb1a20499a73ae5e3f10 Mon Sep 17 00:00:00 2001 From: barak Date: Wed, 8 Apr 2020 14:07:39 +0300 Subject: [PATCH] adding python package and version bumping --- .github/workflows/build-and-test.yml | 50 ++++++++++++++-------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 25a99bd..2d86505 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -80,28 +80,28 @@ jobs: git push origin git tag $new_tag git push origin $new_tag - publish-package: - needs: bump-version - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - uses: dschep/install-pipenv-action@v1 - - name: Install dependencies - run: | - pipenv install --dev - - name: create python package - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git fetch --tags - git pull - pipenv run python setup.py sdist bdist_wheel - - name: Publish a Python distribution to PyPI - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_password }} \ No newline at end of file + publish-package: + needs: bump-version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - uses: dschep/install-pipenv-action@v1 + - name: Install dependencies + run: | + pipenv install --dev + - name: create python package + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git fetch --tags + git pull + pipenv run python setup.py sdist bdist_wheel + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} \ No newline at end of file