-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (54 loc) · 1.5 KB
/
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
name: Build executable
on:
push:
branches: [ YTPMVE_UI_VEGAS ]
pull_request:
branches: [ YTPMVE_UI_VEGAS ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable
run: |
pyinstaller --onefile YTPMVE_UI.pyw
- uses: actions/upload-artifact@v4
with:
name: YTPMVE
path: ./dist/YTPMVE_UI.exe
- name: Create zip file for pre-release
run: |
move ./dist/YTPMVE_UI.exe .
mkdir YTPMVE
Get-Content .\installfiles.txt | foreach { mv $_ .\YTPMVE}
Compress-Archive .\YTPMVE YTPMVE-$(((get-date).ToUniversalTime()).ToString("yyyyMMdd-HHmmss")).zip
- uses: actions/upload-artifact@v4
with:
name: Dev-Release
path: ./YTPMVE*.zip
create-release:
runs-on: windows-latest
needs: build
continue-on-error: true
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: Dev-Release
- uses: "marvinpinto/action-automatic-releases@latest"
name: Create pre-release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
YTPMVE*.zip