forked from 3liz/lizmap-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 2.04 KB
/
Copy pathrelease-package.yml
File metadata and controls
73 lines (63 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release-Package 🎳
on:
workflow_call:
inputs:
dry_run:
required: true
type: boolean
publish:
required: true
type: boolean
secrets:
transifex_token:
required: true
osgeo_username:
required: true
osgeo_password:
required: true
release_token:
required: false
jobs:
release-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Fetch yapt
run: |
curl ${{ vars.YAPT_REPOSITORY_URL }} | tar -xzf -
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
architecture: x64
cache: "pip"
cache-dependency-path: "requirements/packaging.txt"
- name: Install Qt tranlation tools
run: |
sudo apt-get -qq update
sudo apt-get -qq install qttools5-dev-tools pyqt5-dev-tools
pip install --quiet -r requirements/packaging.txt
- name: Pull transifex translations
run: >
qt-transifex -vv pull --compile
--transifex-token "${{ secrets.transifex_token }}"
- name: Fetch current changelog
run: |
./yapt-pkg changelog >> release.md
cat release.md
- name: Package and publish
env:
DRY_RUN_OPT: ${{ inputs.dry_run == true && '--dry-run' || '' }}
PUBLISH_OPT: ${{ inputs.publish == true && '--publish' || '' }}
run: >
./yapt-pkg -v package ${{ env.PUBLISH_OPT }} ${{ env.DRY_RUN_OPT }}
--osgeo-username "${{ secrets.osgeo_username }}"
--osgeo-password "${{ secrets.osgeo_password }}"
--xml ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/download/${GITHUB_REF_NAME}/
- name: Create release on GitHub
if: ${{ inputs.dry_run == false }}
uses: ncipollo/release-action@v1.20.0
with:
bodyFile: release.md
artifacts: "*.zip,plugins.xml"
token: ${{ secrets.release_token }}