Skip to content

Commit

Permalink
Try to make workflow run 4
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnittl committed Jun 5, 2021
1 parent 184e783 commit ddd8a0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# This workflow will upload a Python Package to PyPI when a release is published
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# For more information see:
# - https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# - https://github.com/pypa/gh-action-pypi-publish

name: Upload Python Package

on:
release:
types: [created, edited, published, released]
types: [published]

jobs:
deploy:
Expand All @@ -26,7 +28,7 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Does not trigger release
with:
name: Release ${{ github.ref }}

0 comments on commit ddd8a0a

Please sign in to comment.