-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (82 loc) · 2.44 KB
/
release.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Release
on:
release:
types: [released]
pull_request:
types:
- opened
- synchronize
jobs:
# pypi:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# with:
# python-version: "3.9"
# - run: |
# pip install build
# - run: |
# python -m build
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# - uses: svenstaro/[email protected]
# with:
# file: dist/*
# file_glob: true
qgis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.9"
# Install Qt and required tools
# - run: |
# sudo apt-get update
# sudo apt-get install -y qttools5-dev-tools
# # Compile .ts files into .qm files using lrelease
# - run: |
# lrelease src/quality_result_gui_plugin/resources/i18n/*.ts
# use extra pip install . to do a non-editable install,
# so that .dist-info will go the package instead of .egg-info
- run: |
pip install -r requirements.txt --no-deps --only-binary=:all:
pip install . --no-deps
- run: |
qgis-plugin-dev-tools build
# no qgis repo publish yet for the dummy plugin gui
# - run: |
# qgis-plugin-dev-tools publish dist/*.zip
# env:
# QPDT_PUBLISH_USERNAME: ${{ secrets.QGIS_REPO_USERNAME }}
# QPDT_PUBLISH_PASSWORD: ${{ secrets.QGIS_REPO_PASSWORD }}
# Kommentoidaan pois testien ajaksi
# - uses: svenstaro/[email protected]
# with:
# file: dist/*
# file_glob: true
# Zip the dist folder
# - run: |
# cd dist
# zip -r original_plugin.zip *
# unzip -q dist/original_plugin.zip -d tmp
- run: |
mkdir tmp
cd dist
ls *
unzip -q *.zip -d tmp
ls * tmp
- run: |
cp -r src/quality_result_gui_plugin/resources/i18n tmp/quality_result_gui_plugin/resources/i18n
- run: |
zip -qr new.zip -i tmp/*
- run: |
rm -rf tmp
rm dist/original_plugin.zip
- uses: actions/upload-artifact@v3
with:
name: release-plugin-zip
path: new.zip