From c69a2d5b527a9f6dba3e56db6411b461c43d5c6e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 28 Dec 2019 01:32:07 +0100 Subject: [PATCH] Revert "Try to display event name" This reverts commit a67c9e45cefca83c40355c7276324f7a7c31152c. --- .github/workflows/pythonpackage.yml | 35 +++++++++++++---------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index f2f2d69..42142de 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -35,23 +35,20 @@ jobs: name: Publish to PyPI runs-on: ubuntu-latest needs: build -# if: github.event_name == 'release' + if: github.event_name == 'release' steps: - - run: | - echo "event name" - echo ${{ github.event_name }} -# - uses: actions/checkout@v1 -# - name: Set up Python -# uses: actions/setup-python@v1 -# with: -# python-version: '3.8' -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# pip install poetry -# - name: Build and publish -# env: -# PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} -# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} -# run: | -# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + - name: Build and publish + env: + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD