From a67c9e45cefca83c40355c7276324f7a7c31152c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 28 Dec 2019 01:27:41 +0100 Subject: [PATCH] Try to display event name --- .github/workflows/pythonpackage.yml | 35 ++++++++++++++++------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 42142de..f2f2d69 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -35,20 +35,23 @@ jobs: name: Publish to PyPI runs-on: ubuntu-latest needs: build - if: github.event_name == 'release' +# if: github.event_name == 'release' steps: - - 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 + - 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