Revert "Try to display event name"

This reverts commit a67c9e45ce.
This commit is contained in:
Gabriel Augendre 2019-12-28 01:32:07 +01:00
parent a67c9e45ce
commit c69a2d5b52
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -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