From a7a5194ecfd4095dd8d361c9601b0c90ea73bfc8 Mon Sep 17 00:00:00 2001 From: Daniel Perrefort Date: Mon, 2 Oct 2023 14:37:55 -0400 Subject: [PATCH] Updates publication CI --- .github/workflows/PackagePublish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/PackagePublish.yml b/.github/workflows/PackagePublish.yml index 7af07f6..7bb6460 100644 --- a/.github/workflows/PackagePublish.yml +++ b/.github/workflows/PackagePublish.yml @@ -31,6 +31,9 @@ jobs: environment: publish-pypi steps: + - name: Checkout source + uses: actions/checkout@v4 + - name: Set up Python uses: actions/setup-python@v4 with: @@ -41,15 +44,12 @@ jobs: with: virtualenvs-create: false - - name: Checkout source - uses: actions/checkout@v3 - # Get the new package version from the release tag - # Release tags are expected to start with "refs/tags/v", so the first 11 characters are stripped + # Git release tags are expected to start with "refs/tags/v" - name: Set package version run: | release_tag=${{github.ref}} - poetry version "${release_tag:11}" + poetry version "${release_tag#refs/tags/v}" - name: Build package run: poetry build -v @@ -57,7 +57,7 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 with: - verbose: true + print-hash: true repository-url: ${{ matrix.host }} user: ${{ secrets.REPO_USER }} password: ${{ secrets.REPO_PASSWORD }}