|
10 | 10 | default: false |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - tests: |
14 | | - uses: ./.github/workflows/tests.yml |
15 | | - |
16 | 13 | release-dry-run: |
17 | | - runs-on: ubuntu-latest |
18 | | - if: github.repository_owner == '3liz' && inputs.dry_run == 'true' }} |
19 | | - steps: |
20 | | - - uses: actions/checkout@v6 |
21 | | - |
22 | | - - name: Setup Python |
23 | | - uses: actions/setup-python@v6 |
24 | | - with: |
25 | | - python-version: "3.12" |
26 | | - architecture: x64 |
27 | | - cache: "pip" |
28 | | - cache-dependency-path: "requirements/packaging.txt" |
29 | | - |
30 | | - - name: Set env |
31 | | - run: echo "RELEASE_VERSION=`qgis-plugin-ci meta -r version`" >> $GITHUB_ENV |
32 | | - |
33 | | - - name: Install packaging CI |
34 | | - run: | |
35 | | - sudo apt-get -qq update |
36 | | - sudo apt-get -qq install qttools5-dev-tools pyqt5-dev-tools |
37 | | - pip install --quiet -r requirements/packaging.txt |
38 | | -
|
39 | | - - name: Fetch current changelog |
40 | | - run: qgis-plugin-ci changelog ${{ env.RELEASE_VERSION }} >> release.md |
41 | | - |
42 | | - - name: Pull transifex translations |
43 | | - run: > |
44 | | - qt-transifex -vv pull --compile |
45 | | - --transifex-token "${{ secrets.TRANSIFEX_TOKEN }}" |
46 | | -
|
47 | | - - name: Package and deploy the zip |
48 | | - run: > |
49 | | - qgis-plugin-ci -vv release ${{ env.RELEASE_VERSION }} --dry-run |
50 | | - --github-token "${{ secrets.BOT_HUB_TOKEN }}" |
51 | | - --osgeo-username "${{ secrets.OSGEO_USERNAME }}" |
52 | | - --osgeo-password "${{ secrets.OSGEO_PASSWORD }}" |
| 14 | + if: github.repository_owner == '3liz' && inputs.dry_run == true |
| 15 | + uses: ./.github/workflows/release-package.yml |
| 16 | + with: |
| 17 | + dry_run: true |
53 | 18 |
|
54 | 19 | release: |
55 | | - needs: [tests] |
56 | | - |
57 | | - runs-on: ubuntu-latest |
58 | | - if: ${{ github.repository_owner == '3liz' && contains(github.ref, 'refs/tags/') && inputs.dry_run == 'false' }} |
59 | | - steps: |
60 | | - - uses: actions/checkout@v6 |
61 | | - |
62 | | - - name: Setup Python |
63 | | - uses: actions/setup-python@v6 |
64 | | - with: |
65 | | - python-version: "3.12" |
66 | | - architecture: x64 |
67 | | - cache: "pip" |
68 | | - cache-dependency-path: "requirements/packaging.txt" |
69 | | - |
70 | | - - name: Install packaging CI |
71 | | - run: | |
72 | | - sudo apt-get -qq update |
73 | | - sudo apt-get -qq install qttools5-dev-tools pyqt5-dev-tools |
74 | | - pip install --quiet -r requirements/packaging.txt |
75 | | -
|
76 | | - - name: Set env |
77 | | - run: echo "RELEASE_VERSION=`qgis-plugin-ci meta -r version`" >> $GITHUB_ENV |
78 | | - |
79 | | - - name : Fetch current changelog |
80 | | - run: | |
81 | | - qgis-plugin-ci changelog ${{ env.RELEASE_VERSION }} >> release.md |
82 | | - cat release.md |
83 | | -
|
84 | | - - name: Create release on GitHub |
85 | | - uses: ncipollo/release-action@v1.20.0 |
86 | | - with: |
87 | | - bodyFile: release.md |
88 | | - token: ${{ secrets.BOT_HUB_TOKEN }} |
89 | | - |
90 | | - - name: Pull transifex translations |
91 | | - run: > |
92 | | - qt-transifex -vv pull --compile |
93 | | - --transifex-token "${{ secrets.TRANSIFEX_TOKEN }}" |
94 | | -
|
95 | | - - name: Package and deploy the zip |
96 | | - run: > |
97 | | - qgis-plugin-ci -vv release ${{ env.RELEASE_VERSION }} --create-plugin-repo |
98 | | - --github-token "${{ secrets.BOT_HUB_TOKEN }}" |
99 | | - --osgeo-username "${{ secrets.OSGEO_USERNAME }}" |
100 | | - --osgeo-password "${{ secrets.OSGEO_PASSWORD }}" |
| 20 | + if: ${{ github.repository_owner == '3liz' && contains(github.ref, 'refs/tags/') && inputs.dry_run == false }} |
| 21 | + use: ./.github/workflows/release-package.yml |
| 22 | + with: |
| 23 | + dry_run: false |
101 | 24 |
|
102 | | - - name: Repository Dispatch |
103 | | - uses: peter-evans/repository-dispatch@v3 |
104 | | - with: |
105 | | - token: ${{ secrets.BOT_HUB_TOKEN }} |
106 | | - repository: 3liz/3liz.github.io |
107 | | - event-type: merge-plugins |
108 | | - client-payload: '{"name": "lizmap", "version": "${{ env.RELEASE_VERSION }}", "url": "https://github.com/3liz/lizmap-plugin/releases/latest/download/plugins.xml"}' |
0 commit comments