Skip to content

Commit

Permalink
.github: Update publish.yml (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 authored Dec 5, 2022
1 parent ff0e581 commit f857c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Python Package

on:
release:
types: [created]
types: [published]

jobs:
deploy:
Expand All @@ -14,6 +14,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --user --upgrade build
Expand All @@ -23,7 +25,7 @@ jobs:
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit f857c5f

Please sign in to comment.