Skip to content

Commit f6cf1df

Browse files
Fix GitHub deployment URL
1 parent 5962462 commit f6cf1df

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/python-release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
environment:
5454
name: github-releases
55-
url: ${{ format('https://github.com/{0}/releases', github.repository) }}
55+
url: ${{ format('https://github.com/{0}/releases/tag/{1}', github.repository, github.ref_name) }}
5656
permissions:
5757
contents: write
5858
steps:
@@ -61,14 +61,12 @@ jobs:
6161
with:
6262
name: release-dists
6363
path: dist/
64-
- name: Prepare release information
65-
run: |
66-
printf 'RELEASE_VERSION=%s\n' "${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
67-
sed 1d -- dist/RELEASE-*.md > RELEASE.md
64+
- name: Prepare release description
65+
run: sed 1d -- dist/RELEASE-*.md > RELEASE.md
6866
- name: Publish to GitHub Releases
6967
uses: softprops/action-gh-release@v3
7068
with:
71-
name: ${{ github.event.repository.name }} ${{ env.RELEASE_VERSION }}
69+
name: ${{ needs.build.outputs.project-name }} ${{ needs.build.outputs.project-version }}
7270
body_path: RELEASE.md
7371
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'c') }}
7472
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)