-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (46 loc) · 1.42 KB
/
releaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "🚀 Releaser"
on:
push:
tags:
- "*"
env:
PROJECT_FOLDER: "plugin_qgis_lpo"
PYTHON_VERSION: 3.9
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Get source code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: "pip"
cache-dependency-path: "requirements/packaging.txt"
python-version: ${{ env.PYTHON_VERSION }}
- name: Install system requirements
run: |
sudo apt update
sudo apt install qt5-qmake qttools5-dev-tools
- name: Install Python requirements
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/packaging.txt
- name: Compile translations
run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts
- name : Get current changelog for ${GITHUB_REF/refs\/tags\//}
run: qgis-plugin-ci changelog ${GITHUB_REF/refs\/tags\//} >> release.md
- name: Create release on GitHub
uses: ncipollo/[email protected]
with:
bodyFile: release.md
generateReleaseNotes: true
- name: Deploy plugin
run: >-
echo ${GITHUB_REF/refs\/tags\//} && qgis-plugin-ci
release ${GITHUB_REF/refs\/tags\//}
--github-token ${{ secrets.GITHUB_TOKEN }}
--allow-uncommitted-changes
--create-plugin-repo