Skip to content

Updated releases API URL #37

Updated releases API URL

Updated releases API URL #37

Workflow file for this run

name: Create a release
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-22.04
container:
image: qgis/qgis:final-3_34_12
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: fix Python command
run: apt-get install python-is-python3
- name: Install poetry
uses: Gr1N/setup-poetry@v8
- name: Install pluginadmin dependencies
run: poetry install
- name: Get experimental info
id: get-experimental
run: |
echo "::set-output name=IS_EXPERIMENTAL::$(poetry run python -c "import toml; data=toml.load('pyproject.toml'); print(data['tool']['qgis-plugin']['metadata']['experimental'].lower())")"
- name: create release from tag
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
prerelease: ${{ steps.get-experimental.outputs.IS_EXPERIMENTAL }}
draft: false
- name: generate zip
run: poetry run python pluginadmin.py generate-zip
- name: get zip details
id: get-zip-details
run: |
echo "::set-output name=ZIP_PATH::dist/$(ls dist)\n"
echo "::set-output name=ZIP_NAME::$(ls dist)"
- name: upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url}}
asset_path: ${{ steps.get-zip-details.outputs.ZIP_PATH}}
asset_name: ${{ steps.get-zip-details.outputs.ZIP_NAME}}
asset_content_type: application/zip
update-docs:
needs: create-release
runs-on: ubuntu-22.04
container:
image: qgis/qgis:final-3_34_12
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: fix Python command
run: apt-get install python-is-python3
- name: Install poetry
uses: Gr1N/setup-poetry@v8
- name: Install pluginadmin dependencies
run: poetry install
- name: generate plugin repo XML
run: poetry run python pluginadmin.py --verbose generate-plugin-repo-xml
- name: update docs
run: poetry run mkdocs gh-deploy --force