-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (31 loc) · 1.09 KB
/
release.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
on:
release:
types: published
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'felt' && contains(github.ref, 'refs/tags/')
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "requirements/packaging.txt"
# Needed if the plugin is using Transifex, to have the lrelease command
# - name: Install Qt lrelease
# run: |
# sudo apt-get update
# sudo apt-get install qt5-make qttools5-dev-tools
- name: Install Python requirements
run: pip install -r requirements/packaging.txt
- name : Fetch current changelog
run: qgis-plugin-ci changelog ${{ env.RELEASE_VERSION }} >> release.md
- name: Deploy plugin
run: >-
qgis-plugin-ci
release ${{ env.RELEASE_VERSION }}
--github-token ${{ secrets.GITHUB_TOKEN }}