Skip to content

Commit 209a380

Browse files
committed
add release workflow
1 parent 5c95fbb commit 209a380

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release Plugin
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v6
18+
with:
19+
python-version: "3.12"
20+
21+
- name: Install qgis-plugin-ci
22+
run: pip install qgis-plugin-ci
23+
24+
- name: Release
25+
run: |
26+
VERSION=${GITHUB_REF_NAME#v}
27+
qgis-plugin-ci release ${VERSION} \
28+
--github-token ${{ secrets.GITHUB_TOKEN }} \
29+
--create-plugin-repo
30+

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.qgis-plugin-ci]
2+
plugin_path = "plugin_inspector"

0 commit comments

Comments
 (0)