Skip to content

Commit

Permalink
[Publishing] Check identify for dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zymrael committed Mar 1, 2023
1 parent 6bda66a commit da4b40f
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8
if: github.actor == Zymrael
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Build
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry lock
poetry build
- name: Build
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry lock
poetry build
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
run: |
poetry config pypi-token.pypi ${{ secrets.pypi_token }}
poetry publish
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
run: |
poetry config pypi-token.pypi ${{ secrets.pypi_token }}
poetry publish

0 comments on commit da4b40f

Please sign in to comment.