Merge pull request 'update workflow' (#4) from dev into main

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2025-12-06 07:53:49 +00:00

View File

@@ -2,25 +2,25 @@ on:
workflow_dispatch:
inputs:
github_release:
description: 'Create Gitea Release'
description: "Create Gitea Release"
default: true
type: boolean
bump:
description: 'Bump type'
description: "Bump type"
required: true
default: 'patch'
default: "patch"
type: choice
options:
- 'major'
- 'minor'
- 'patch'
- "major"
- "minor"
- "patch"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
@@ -65,13 +65,12 @@ jobs:
USERNAME: ${{ github.repository_owner }}
run: uv publish --publish-url https://git.theprivateserver.de/api/packages/$USERNAME/pypi/ -t ${{ secrets.TOKEN }}
- name: Create release
id: create_release
if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@master
with:
tag_name: ${{ env.VERSION }}
tag_name: v${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false