-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (42 loc) · 1.38 KB
/
releaser.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
name: "🚀 Release"
env:
PROJECT_FOLDER: "gml_application_schema_toolbox"
PYTHON_VERSION: 3.7
on:
push:
tags:
- "*"
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/[email protected]
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
cache-dependency-path: "requirements/packaging.txt"
- name: Get tag name as version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Install project requirements
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/packaging.txt
- name: Get current changelog for ${VERSION}
run: qgis-plugin-ci changelog ${GITHUB_REF/refs\/tags\//} >> release.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
bodyFile: release.md
generate_release_notes: true
- name: Deploy plugin
run: >-
qgis-plugin-ci
release ${GITHUB_REF/refs\/tags\//}
--allow-uncommitted-changes
--github-token ${{ secrets.GITHUB_TOKEN }}
--osgeo-username ${{ secrets.OSGEO_USER }}
--osgeo-password ${{ secrets.OSGEO_PASSWORD }}