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