-
-
Notifications
You must be signed in to change notification settings - Fork 128
92 lines (73 loc) · 2.29 KB
/
tauri_app_build.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: tauri_app_build
on:
push:
branches:
- 'releases/**'
jobs:
build:
strategy:
matrix:
os: [windows-latest,ubuntu-20.04]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Check-out repository
uses: actions/checkout@v3
- run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> "$GITHUB_ENV"
if: matrix.os == 'ubuntu-20.04'
- run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> $env:GITHUB_ENV
if: matrix.os == 'windows-latest'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Build Executable
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: app.py
output-file: iib_api_server
output-dir: out
include-data-dir: |
vue/dist=vue/dist
- name: Upload Server Artifacts
uses: actions/upload-artifact@v3
with:
name: iib_api_server-${{ env.VERSION }}-${{ runner.os }}
path: |
out/iib_api_server.exe
out/iib_api_server
release:
needs: [ build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check-out repository
uses: actions/checkout@v3
- run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> "$GITHUB_ENV"
- name: Delete drafts
uses: hugo19941994/delete-draft-releases@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/download-artifact@v3
with:
name: iib_api_server-${{ env.VERSION }}-Windows
path: artifacts
- uses: actions/download-artifact@v3
with:
name: iib_api_server-${{ env.VERSION }}-Linux
path: artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
tag_name: v${{ env.VERSION }}
files: artifacts/**/*