Skip to content

Commit abd3d9a

Browse files
committed
release
1 parent f4f0db3 commit abd3d9a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/plugin-package.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ concurrency:
66

77
on:
88
push:
9+
tags:
10+
- '*'
911
branches:
1012
- main
1113
pull_request:
@@ -50,14 +52,27 @@ jobs:
5052
5153
5254
- name: Package
55+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
5356
run: |
5457
VERSION=0.0.0
5558
qgis-plugin-ci -v package ${VERSION} \
5659
--allow-uncommitted-changes \
5760
--asset-path oqtopus/libs \
5861
5962
- uses: actions/upload-artifact@v4
63+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
6064
with:
6165
name: oqtopus_dev
6266
path: oqtopus.0.0.0.zip
6367
if-no-files-found: error
68+
69+
- name: Release
70+
if: startsWith(github.ref, 'refs/tags/')
71+
run: |
72+
VERSION=${{ github.ref_name }}
73+
qgis-plugin-ci release ${VERSION} \
74+
--allow-uncommitted-changes \
75+
--asset-path oqtopus/libs \
76+
--github-token ${{ secrets.GITHUB_TOKEN }} \
77+
--osgeo-username ${{ secrets.OSGEO_PLUGIN_USERNAME }} \
78+
--osgeo-password ${{ secrets.OSGEO_PLUGIN_PASSWORD }}

0 commit comments

Comments
 (0)