Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

add git action

Daniel Gatisbb747ea62fc8
diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml
new file mode 100644
index 0000000..81a044c
--- /dev/null
+++ b/.github/workflows/publish_pypi.yml
@@ -0,0 +1,28 @@
+name: Publish to Pypi
+
+on:
+ push:
+ tags:
+ - "v*.*.*"
+
+jobs:
+ push_to_pypi:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+
+ - name: "Installs dependencies"
+ run: |
+ python3 -m pip install --upgrade pip
+ python3 -m pip install setuptools wheel twine
+
+ - name: "Builds and uploads to PyPI"
+ run: |
+ python3 setup.py sdist bdist_wheel
+ python3 -m twine upload dist/*
+ env:
+ TWINE_USERNAME: ${{ secrets.PIPY_USERNAME }}
+ TWINE_PASSWORD: ${{ secrets.PIPY_PASSWORD }}