From ef5383296a550bfd8a0b0a6118eaef1da5bc5f1e Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Wed, 22 Nov 2023 09:03:34 -0800 Subject: [PATCH] Updates the action to create a release to a maintained version --- .github/workflows/pypi_upload.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index cbbb4d31..4c832115 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -19,18 +19,17 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag: ${{ github.ref }} + name: Release ${{ github.ref_name }} draft: false prerelease: false + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python 3.10 uses: actions/setup-python@v4 @@ -56,7 +55,7 @@ jobs: user: __token__ password: ${{ secrets.PYPI_TOKEN }} # repository_url: https://test.pypi.org/legacy/ - packages_dir: dist/ + packages-dir: dist/ # git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:master # we need to use a deploy key for this to get around branch protection as the default token fails