-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.62 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
name: Build using ps2exe
on:
push:
tags:
- 'v*.*.*'
- '!v*.*.*-hiveos'
jobs:
Build-GLT-With-ps2exe:
name: Build GLT with ps2exe and package
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Install ps2exe module via PSGallery
shell: powershell
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module -Name ps2exe -Force
Import-Module -Name ps2exe
Invoke-ps2exe -noConsole .\glt_launcher.ps1 .\glt_launcher.exe
- name: Setup package directory
shell: powershell
run: |
New-Item -Path .\dist\gpu_lookup\src\ -ItemType Directory
Rename-Item -Path .\config.json.example -NewName .\config.json
Copy-Item -Path .\config.json -Destination .\dist\gpu_lookup\src\
Copy-Item -Path .\glt_launcher.exe -Destination .\dist\gpu_lookup\src\
Copy-Item -Path .\resources\* -Destination .\dist\gpu_lookup\src\resources\icons -Recurse
Copy-Item -Path .\GUI.xaml -Destination .\dist\gpu_lookup\src\
Copy-Item .\glt_launcher.ps1,.\gpu_lookup_tableGUI.ps1,.\p7zip_util.ps1,.\help_man.ps1 -Destination .\dist\gpu_lookup\src\
- name: Compress package directory
shell: powershell
run: |
Rename-Item -Path .\dist -NewName gpu_lookup_tableGUI
Compress-Archive -Path .\gpu_lookup_tableGUI\ -DestinationPath glt_${{github.ref_name}}.zip -Force
- uses: ncipollo/release-action@v1
with:
artifacts: "glt_${{github.ref_name}}.zip"
draft: true