File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build using ps2exe
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+
7
+ jobs :
8
+ Build-GLT-With-ps2exe :
9
+ name : Build GLT with ps2exe and package
10
+ runs-on : windows-latest
11
+ permissions :
12
+ contents : write
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - name : Install ps2exe module
16
+ shell : powershell
17
+ run : |
18
+ Install-Module ps2exe
19
+ - name : Build exe from glt_launcher.ps1
20
+ shell : powershell
21
+ run : |
22
+ ps2exe -noConsole .\glt_launcher.ps1 .\glt_launcher.exe
23
+ - name : Setup package directory
24
+ shell : powershell
25
+ run : |
26
+ New-Item -Path .\dist\gpu_lookup\src\ -ItemType Directory
27
+ Rename-Item -Path .\config.json.example -NewName .\config.json
28
+ Copy-Item -Path .\config.json -Destination .\dist\gpu_lookup\src\
29
+ Copy-Item -Path .\glt_launcher.exe -Destination .\dist\gpu_lookup\src\
30
+ Copy-Item -Path .\resources\* -Destination .\dist\gpu_lookup\src\resources\icons -Recurse
31
+ Copy-Item -Path .\GUI.xaml -Destination .\dist\gpu_lookup\src\
32
+ Copy-Item .\glt_launcher.ps1,.\gpu_lookup_tableGUI.ps1,.\help_man.ps1 -Destination .\dist\gpu_lookup\src\
33
+ - name : Compress package directory
34
+ shell : powershell
35
+ run : |
36
+ Rename-Item -Path .\dist -NewName gpu_lookup_tableGUI
37
+ Compress-Archive -Path .\gpu_lookup_tableGUI\ -DestinationPath glt_${{github.ref_name}}.zip -Force
38
+ - uses : ncipollo/release-action@v1
39
+ with :
40
+ artifacts : " glt_${{github.ref_name}}.zip"
41
+ draft : true
You can’t perform that action at this time.
0 commit comments