From 50316f681ca1371b5969777049ac5be19291f6c9 Mon Sep 17 00:00:00 2001 From: Philip Vanloo <26272906+dukeofphilberg@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:38:04 +0200 Subject: [PATCH] Add action-gh-release to release workflow (#26) --- .github/workflows/release.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 410c266..42b1dbd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,12 +2,12 @@ name: release run-name: Creating releases/${{ inputs.version }} on: - workflow_dispatch: - inputs: - version: - description: 'Version' - required: true - type: string + workflow_dispatch: + inputs: + version: + description: "Version" + required: true + type: string jobs: create_release: @@ -29,8 +29,8 @@ jobs: python-version: 3.11 - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install build + python -m pip install --upgrade uv + uv pip install build - name: Build package run: python -m build - uses: pypa/gh-action-pypi-publish@release/v1 @@ -40,4 +40,11 @@ jobs: git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git checkout -B releases/${{ github.event.inputs.version }} git commit --allow-empty -am "Create version ${{ github.event.inputs.version }}" - git push --set-upstream origin releases/${{ github.event.inputs.version }} \ No newline at end of file + git push --set-upstream origin releases/${{ github.event.inputs.version }} + - name: Create GitHub release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ github.event.inputs.version }} + generate_release_notes: true + target_commitish: releases/${{ github.event.inputs.version }} + make_latest: true