From f408f8983263cf33d8b66ffd1fed9cd80d62a432 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 24 Apr 2022 03:17:56 -0400 Subject: [PATCH 1/3] Publish to GitHub and PyPI --- .github/workflows/publish.yml | 40 +++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..e09196b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +# ref: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Publish Package + +on: + # publish from the Releases page: + release: + types: [published] + +jobs: + publish: + name: Publish Package + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build + run: python -m build + + - name: Publish to Github + uses: softprops/action-gh-release@v1 + with: + files: 'dist/*' + fail_on_unmatched_files: true + prerelease: ${{ contains(github.ref, 'rc') || contains(github.ref, 'dev') }} + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} diff --git a/README.md b/README.md index 9215d23..d1cb4fe 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ for InfCloud to work properly. Otherwise the "Refresh" button is broken. ## Installation ```shell -python3 -m pip install --upgrade https://github.com/Unrud/RadicaleInfCloud/archive/master.tar.gz +python3 -m pip install --upgrade RadicaleInfCloud ``` ## Configuration From 3a8bcbd21d6aabc0c2edce2eedff92f895d43dbe Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 4 Jul 2022 20:04:17 -0400 Subject: [PATCH 2/3] Match install instructions to what's in setup.py --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1cb4fe..e4e5356 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ for InfCloud to work properly. Otherwise the "Refresh" button is broken. ## Installation ```shell -python3 -m pip install --upgrade RadicaleInfCloud +python3 -m pip install --upgrade radicale_infcloud ``` ## Configuration From 5d35a264885dac15422a16323a8615f1dc79cbd7 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 4 Jul 2022 20:09:35 -0400 Subject: [PATCH 3/3] Fix upstream URL --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5826b31..cb6b5e3 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ description="InfCloud for Radicale", author="Unrud", author_email="unrud@outlook.com", - url="http://github.com/Unrud/RadicaleWeb", + url="https://github.com/Unrud/RadicaleInfCloud", license="GNU AGPL v3", platforms="Any", packages=["radicale_infcloud"],