diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..68a6132 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Upload to Pypi + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/README.md b/README.md index 86afa88..08ec0e6 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -======================== -django-channels-presence-4.0 -======================== +# django-channels-presence-4.0 A reusable Django app for implementing "presence" and "rooms" using -`django-channels `_. +`django-channels `. - Docs: https://django-channels-presence-40.readthedocs.io/en/latest/