diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a75da4f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: pypi + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PUNCC_TO_PYPI }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index b0e8292..298dce5 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ # Virtual environment puncc-dev-env/ puncc-user-env/ -.venv +.venv/ # Local demo files **demo/ diff --git a/README.md b/README.md index 358e983..7015b21 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Documentation is available [**online**](https://deel-ai.github.io/puncc/index.ht You can directly install the library using pip: ```bash -pip install git+https://github.com/deel-ai/puncc +pip install puncc ```