Skip to content

Commit

Permalink
chore: auto release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Nov 8, 2024
1 parent 51a06f3 commit 1c1dce5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- "*"

jobs:
build-package:
name: Build & inspect our package.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2

release-pypi:
name: Publish released package to pypi.org
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/bentoml-comfyui/${{ github.ref_name }}
runs-on: ubuntu-latest
needs: build-package

steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ dependencies = [
"comfyui-idl>=0.0.1",
]
dynamic = ["version"]
keywords = ["bentoml", "comfyui"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]

[project.urls]
Homepage = "https://github.com/bentoml/bentoml-comfyui"
Expand Down

0 comments on commit 1c1dce5

Please sign in to comment.