Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Jan 27, 2024
1 parent 9fea251 commit 0f29e5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install gradio
run: python -m pip install gradio build twine
- name: Build pr package
run: |
gradio cc install --npm-install="pnpm i"
gradio cc build
gradio cc publish --pypi-username=__token__ --pypi-password=${{ secrets.PYPI_API_TOKEN }} --upload-demo --no-upload-source --hf-token=${{ secrets.HF_TOKEN }}
- run: gradio cc install --npm-install="pnpm i"
- run: gradio cc docs
- run: gradio cc build --no-generate-docs
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- run: gradio cc publish --no-upload-pypi --upload-demo --no-upload-source --hf-token=${{ secrets.HF_TOKEN }}
11 changes: 3 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build-backend = "hatchling.build"
[project]
name = "gradio_imageslider"
version = "0.0.18"

description = """
A Gradio component for comparing two images.
Expand All @@ -18,6 +19,7 @@ This component can be used in several ways:
- as a **manual upload input** allowing users to compare two of their own images (which can then be passed along elsewhere, e.g. to a model),
- as **static output component** allowing users to compare two images generated by an inference function.
"""

license = "Apache-2.0"
requires-python = ">=3.8"
authors = [{ name = "pngwn", email = "[email protected]" }]
Expand Down Expand Up @@ -49,14 +51,7 @@ classifiers = [
repository = "https://github.com/pngwn/gradio-imageslider"

[tool.hatch.build]
artifacts = [
"backend/gradio_imageslider/boo",
"*.pyi",
"backend/gradio_imageslider/templates",
"backend/gradio_imageslider/templates",
"backend/gradio_imageslider/templates",
"backend/gradio_imageslider/templates",
]
artifacts = ["backend/gradio_imageslider/boo", "*.pyi", "backend/gradio_imageslider/templates"]

[tool.hatch.build.targets.wheel]
packages = ["backend/gradio_imageslider"]
Expand Down
1 change: 1 addition & 0 deletions requirement.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradio

0 comments on commit 0f29e5e

Please sign in to comment.