diff --git a/.github/workflows/main-deploy-docs.yml b/.github/workflows/main-deploy-docs.yml index 2abb5ca..b33e28b 100644 --- a/.github/workflows/main-deploy-docs.yml +++ b/.github/workflows/main-deploy-docs.yml @@ -3,10 +3,14 @@ name: deploy-docs -# Controls when the action will run. +# Controls when the action will run. on: - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + # All non-beta tag pushes. + push: + tags: + - 'v*' + except: + - 'v*b*' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -22,4 +26,4 @@ jobs: - name: Docs env: DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }} - run: curl -X POST -d "branches=master" -d "token=$DOCS_TOKEN" https://readthedocs.org/api/v2/webhook/submitr/246175/ + run: curl -X POST -d "ref=master" -d "token=$DOCS_TOKEN" https://readthedocs.org/api/v2/webhook/submitr/246175/ diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a0a45db..95769c1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,17 @@ submitr Change Log ---------- +0.3.1 +===== + +* Auto-submit to readthedocs on any non-beta version tag push (v* except v*b*). +* Fix a bug in readthedocs submission where we were using branches=master and getting an error saying + ``{"detail":"Parameter \"ref\" is required"}``. ChatGPT thinks this is because we wanted a curl + parameter of ``-d "ref=master"`` rather than ``-d "branches=master"`` like we had. +* Remove spurious "Module Contents" headings in three places. + We do not put code in ``__init__.py`` so these sections would always be empty (and confusing). + + 0.3.0 ===== diff --git a/docs/source/submitr.rst b/docs/source/submitr.rst index 854ef11..4e02965 100644 --- a/docs/source/submitr.rst +++ b/docs/source/submitr.rst @@ -44,11 +44,3 @@ submitr.utils module :members: :undoc-members: :show-inheritance: - -Module contents ---------------- - -.. automodule:: submitr - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/submitr.scripts.rst b/docs/source/submitr.scripts.rst index fc6055e..53dd56a 100644 --- a/docs/source/submitr.scripts.rst +++ b/docs/source/submitr.scripts.rst @@ -35,11 +35,3 @@ submitr.scripts.upload\_item\_data module :members: :undoc-members: :show-inheritance: - -Module contents ---------------- - -.. automodule:: submitr.scripts - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/source/submitr.tests.rst b/docs/source/submitr.tests.rst index 9b362a3..113eb47 100644 --- a/docs/source/submitr.tests.rst +++ b/docs/source/submitr.tests.rst @@ -67,11 +67,3 @@ submitr.tests.test\_utils module :members: :undoc-members: :show-inheritance: - -Module contents ---------------- - -.. automodule:: submitr.tests - :members: - :undoc-members: - :show-inheritance: diff --git a/pyproject.toml b/pyproject.toml index 8ddc2d4..e9daae9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "submitr" -version = "0.3.0" +version = "0.3.1" description = "Support for uploading file submissions to SMAHT." # TODO: Update this email address when a more specific one is available for SMaHT. authors = ["4DN-DCIC Team "]