Try to display event name

This commit is contained in:
Gabriel Augendre 2019-12-28 01:27:41 +01:00
parent 6a706700ce
commit a67c9e45ce
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -35,20 +35,23 @@ jobs:
name: Publish to PyPI name: Publish to PyPI
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: github.event_name == 'release' # if: github.event_name == 'release'
steps: steps:
- uses: actions/checkout@v1 - run: |
- name: Set up Python echo "event name"
uses: actions/setup-python@v1 echo ${{ github.event_name }}
with: # - uses: actions/checkout@v1
python-version: '3.8' # - name: Set up Python
- name: Install dependencies # uses: actions/setup-python@v1
run: | # with:
python -m pip install --upgrade pip # python-version: '3.8'
pip install poetry # - name: Install dependencies
- name: Build and publish # run: |
env: # python -m pip install --upgrade pip
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} # pip install poetry
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} # - name: Build and publish
run: | # env:
poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD # PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD