Try to display event name
This commit is contained in:
parent
6a706700ce
commit
a67c9e45ce
1 changed files with 19 additions and 16 deletions
35
.github/workflows/pythonpackage.yml
vendored
35
.github/workflows/pythonpackage.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue