-
Notifications
You must be signed in to change notification settings - Fork 42
46 lines (38 loc) · 1.33 KB
/
release_qgis_plugin.yml
File metadata and controls
46 lines (38 loc) · 1.33 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
name: Create Release Package for AD-Map QGIS Plugin
on:
release:
types: [published]
push:
branches: main
pull_request:
branches: main
jobs:
publish:
name: Publish AD-Map QGIS Plugin
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- name: Install Dependencies
run: bash .github/workflows/install_dependencies.sh
- name: Build Libraries
run: |
source map-build-venv/bin/activate
colcon build --event-handlers console_direct+ --executor sequential --metas colcon_python.meta --packages-up-to ad_map_access_qgis
- name: Build Package
run: |
cd install/ad_map_access_qgis/share/qgis/python/plugins/
zip -r ad_map_access_qgis.zip ad_map_access_qgis/
mv ad_map_access_qgis.zip ../../../../../../
- name: Upload binaries to release
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2
if: ${{ github.event_name == 'release'}}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ad_map_access_qgis.zip
tag: ${{ github.ref }}