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