-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.11 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
40
41
42
name: release
on:
push:
branches:
- main
tags:
- '*'
jobs:
build:
name: Release ${{ matrix.os }} PyInstaller
runs-on: ${{ matrix.os }}
permissions: write-all
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.4.1
- name: Build with PyInstaller
run: pixi run build-backend
- name: Create backend ZIP
run: pixi run zip-backend
- name: Release backend ZIP
run: gh release upload ${{ github.ref_name }} dist/gistim-${{ runner.os }}.zip dist/sha256-checksum-${{ runner.os }}.txt
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
- name: Create plugin ZIP
if: matrix.os == 'ubuntu-latest'
run: pixi run zip-plugin
- name: Release plugin ZIP
if: matrix.os == 'ubuntu-latest'
run: gh release upload ${{ github.ref_name }} plugin/QGIS-Tim-plugin.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}