Skip to content

Commit

Permalink
Add action-gh-release to release workflow (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
dukeofphilberg authored Aug 12, 2024
1 parent 813a8d8 commit 50316f6
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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 }}
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

0 comments on commit 50316f6

Please sign in to comment.