diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 015994a..fa0c4dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,13 @@ jobs: - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + - name: Create Release if not exists + run: | + gh release view ${{ steps.version.outputs.TAG_NAME }} || \ + gh release create ${{ steps.version.outputs.TAG_NAME }} --title "${{ steps.version.outputs.TAG_NAME }}" --notes "Release ${{ steps.version.outputs.TAG_NAME }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release Asset run: gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl env: diff --git a/pyproject.toml b/pyproject.toml index 7d83e06..a890f34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-prometheus" -version = "0.2.14" +version = "0.3.0" description = "nonebot-plugin-prometheus" readme = "README.md" requires-python = ">=3.9, <4.0"