-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.2 KB
/
build_and_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
43
44
45
46
47
48
49
50
51
name: build_and_release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
python: [3.11]
os: [windows-latest]
runs-on: ${{ matrix.os }}
name: Build kanjireader
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: ${{ matrix.python }}
spec: "scripts/pyinstaller.spec"
requirements: "requirements.txt"
- name: Compile install wizard
uses: Minionguyjpro/Inno-Setup-Action@v1.1.0
with:
path: "scripts/setup.iss"
options: /DVersion="${{ github.ref_name }}"
release:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: Build kanjireader
needs: build
steps:
- name: Create release and upload
uses: meeDamian/github-release@2.0
with:
allow_override: true
token: ${{ secrets.GITHUB_TOKEN }}
files: "kanjireader_${{ github.ref_name }}_setup_.exe:dist/kr_setup.exe"