-
Notifications
You must be signed in to change notification settings - Fork 60
49 lines (38 loc) · 1.26 KB
/
release.yml
File metadata and controls
49 lines (38 loc) · 1.26 KB
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
name: Release 🚀
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'ghtmtt' && contains(github.ref, 'refs/tags/')
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Qt lrelease
run: |
sudo apt-get update
sudo apt-get install qtbase5-dev qt5-qmake qttools5-dev-tools
- name: Install Python requirements
run: pip install qgis-plugin-ci
- name : Get current changelog
run: qgis-plugin-ci changelog ${{ env.RELEASE_VERSION }} >> release.md
- name: Create release on GitHub
uses: ncipollo/release-action@v1.10.0
with:
bodyFile: release.md
token: ${{ secrets.GITHUB_TOKEN }}
- name: Package and deploy the zip
run: >-
qgis-plugin-ci
release ${{ env.RELEASE_VERSION }}
--github-token ${{ secrets.GITHUB_TOKEN }}
--transifex-token ${{ secrets.TRANSIFEX_TOKEN }}
--qgis-token ${{ secrets.QGIS_TOKEN }}
--create-plugin-repo