-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.64 KB
/
publish-installer.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
name: Publish Buildarr installer
on:
release:
types:
- published
jobs:
wheels:
runs-on: windows-2022
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Check out the repository
uses: actions/checkout@v4
- name: Download and build wheels
run: python -m pip wheel --requirement requirements.txt --wheel-dir wheels
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheels
retention-days: 5
buildarr-installer:
needs: wheels
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Update package metadata
run: sudo apt-get update
- name: Install system packages
run: sudo apt-get install -y nsis
- name: Install pynsist
run: python -m pip install pynsist==2.8
- name: Check out the repository
uses: actions/checkout@v4
- name: Download wheels from build artifacts
uses: actions/download-artifact@v3
with:
name: wheels
path: wheels
- name: Build Buildarr installer
run: pynsist installer.cfg
- name: Upload Buildarr installer to release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: build/nsis/buildarr-installer-*.exe
release_id: ${{ github.event.release.id }}
overwrite: true