Skip to content

Commit

Permalink
👷 Fix publish action reference in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Galileo-Galilei committed Sep 2, 2023
1 parent 2edd885 commit 577fbf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
PYTHON_PACKAGE: kedro_pandera
steps:
- name: Checkout the repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # necessary to enable merging, all the history is needed
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build package dist from source # A better way will be : https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ but pep 517 is still marked as experimental
Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish distribution to Test PyPI # official action from python maintainers
# uses: pypa/gh-action-pypi-publish@main
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_PASSWORD }}
# repository_url: https://test.pypi.org/legacy/
# verbose: true # trace if the upload fails
- name: Publish distribution to PyPI # official action from python maintainers
uses: pypa/gh-action-pypi-publish@main
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }} # see https://github.com/pypa/gh-action-pypi-publish#usage
Expand Down

0 comments on commit 577fbf8

Please sign in to comment.