Skip to content

update map.geo.admin.ch layers (#90) #43

update map.geo.admin.ch layers (#90)

update map.geo.admin.ch layers (#90) #43

name: 🔌 Plugin | Package and release
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
tags:
- '*'
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Qt lrelease
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev qttools5-dev-tools
- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci
- name: 🌍 Push translations
if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') }}
run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }}
- name: copy licence
run: cp LICENSE swiss_locator/LICENSE
- name: Package
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: |
VERSION=0.0.0
qgis-plugin-ci package ${VERSION} \
--transifex-token "${{ secrets.TX_TOKEN }}"
- uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: swiss_locator_plugin_dev
path: swiss_locator.0.0.0.zip
if-no-files-found: error
- name: Release
if: startsWith(github.ref, 'refs/tags/')
run: |
VERSION=${{ github.ref_name }}
qgis-plugin-ci release ${VERSION} \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--osgeo-username ${{ secrets.OSGEO_USERNAME }} \
--osgeo-password ${{ secrets.OSGEO_PASSWORD }} \
--transifex-token "${{ secrets.TX_TOKEN }}"