Skip to content

Commit

Permalink
fix $ signs + create archive
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 10, 2024
1 parent 9a6615f commit 9959026
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ jobs:
name: ${{ matrix.qgis_version }}
path: ./build/

- name: Create archive

run: zip -r pyqgis-docs-${{ env.QGIS_VERSION }}.zip ./build/${{ env.QGIS_VERSION }}

- name: Release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name != 'pull_request' && matrix.qgis_version != 'master' }}
with:
tag_name: ${{ env.QGIS_VERSION }}
files: ./build/${{ env.QGIS_VERSION }}
files: pyqgis-docs-${{ env.QGIS_VERSION }}.zip

deploy-docs:
if: ${{ github.event_name != 'pull_request' }}
Expand Down
12 changes: 6 additions & 6 deletions scripts/make_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def ltr_tag(v):
current_stable_minor = int(current_stable.split(".")[1]) + 2 # '3.38' => 40
old_versions_links = ", ".join(
[
f"`{v} <https://github.com/qgis/pyqgis/releases/download/3.{v}/3.{v}.zip>`_"
for v in range(0, current_stable_minor)
f"`3.0{v} <https://github.com/qgis/pyqgis/releases/download/3.{v}/3.{v}.zip>`_"
for v in range(0, current_stable_minor, 2)
]
)

Expand Down Expand Up @@ -94,13 +94,13 @@ def ltr_tag(v):
Versions of the API
---------------------------
Documentation for master: https://qgis.org/pyqgis/master
Documentation for current stable ${current_stable}: https://qgis.org/pyqgis/${current_stable}
Documentation for current LTR ${current_ltr}: https://qgis.org/pyqgis/${current_ltr}
* Documentation for master: https://qgis.org/pyqgis/master
* Documentation for current stable {current_stable}: https://qgis.org/pyqgis/{current_stable}
* Documentation for current LTR {current_ltr}: https://qgis.org/pyqgis/{current_ltr}
See `Backwards Incompatible Changes <https://api.qgis.org/api/master/api_break.html>`_ for information about incompatible changes to API between releases.
Earlier versions of the documentation are also available as downloads: ${old_versions_links}.
Earlier versions of the documentation are also available as downloads: {old_versions_links}.
Communication channels
----------------------
Expand Down

0 comments on commit 9959026

Please sign in to comment.