-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (54 loc) · 1.52 KB
/
release.yaml
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
53
54
55
56
57
58
59
60
61
62
63
name: Release
on:
push:
branches: ["main"]
tags:
- 'v*'
jobs:
build-linux:
runs-on: ubuntu-24.04
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Git Checkout
uses: actions/checkout@v4
- name: Install GTK deps
run: |
sudo apt install libgirepository1.0-dev gcc libgtk-4-dev -y
- name: Install Poetry and Deps
run: |
python -m pip install --upgrade pip
pip install poetry && poetry --version
poetry install --with dev
- name: Run Pyinstaller
run: |
poetry run pyinstaller keyboard.spec
version=$(ldd --version | head -n 1 | awk '{print $NF}')
pyversion=$(python --version 2>&1 | awk '{print $2}')
mv ./dist/keyboard ./dist/virtual-keyboard-py$pyversion-glib$version-x86_64
- name: Store Dist
uses: actions/upload-artifact@v4
with:
name: linux-dist
path: dist/
github-release:
needs: [ build-linux ]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Download Linux Artifacts
uses: actions/download-artifact@v4
with:
name: linux-dist
path: dist/
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create "${{ github.ref_name }}" dist/**
--repo "${{ github.repository }}"
--generate-notes