-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (53 loc) · 1.61 KB
/
release.yaml
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
59
60
61
62
63
name: release
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- published
jobs:
release:
runs-on: ubuntu-22.04
env:
GITHUB_REF: ${{ github.ref }}
if: ${{ github.event_name == 'release' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- 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==2.7.*
- name: Release
run: |
VERSION=$(echo "${GITHUB_REF_NAME}" | cut -d+ -f1)
qgis-plugin-ci -v release ${VERSION} \
--release-tag ${GITHUB_REF_NAME} \
--transifex-token ${{ secrets.TX_TOKEN }} \
--github-token ${{ secrets.GITHUB_TOKEN }} \
--osgeo-username ${{ secrets.OSGEO_USERNAME }} --osgeo-password ${{ secrets.OSGEO_PASSWORD }} \
--allow-uncommitted-changes
translations:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- 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==2.7.*
- name: 🌍 Push translations
run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }}