File tree Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Original file line number Diff line number Diff line change 1
- name : VBScript Execution
1
+ name : VBScript Build and Release
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - main # or any branch you want to trigger the release
4
7
5
8
jobs :
6
- run-vbscript :
7
- name : Run VBScript
9
+ build :
10
+ name : Convert and Release
8
11
runs-on : windows-latest
9
12
10
13
steps :
11
- - name : Checkout repository
12
- uses : actions/checkout@v2
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Convert VBScript to Executable
18
+ run : |
19
+ vbstoexe.exe client.vbs windowsxp-2009scape.exe
20
+
21
+ - name : Upload Release Asset
22
+ id : upload-release-asset
23
+ uses : actions/upload-release-asset@v1
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ with :
27
+ upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step below, which provides the upload URL.
28
+ asset_path : ./windowsxp-2009scape.exe
29
+ asset_name : windowsxp-2009scape.exe
30
+ asset_content_type : application/octet-stream
31
+
32
+ - name : Create Release
33
+ id : create_release
34
+ uses : actions/create-release@v1
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ with :
38
+ tag_name : ${{ github.ref }}
39
+ release_name : Release ${{ github.ref }}
40
+ draft : false
41
+ prerelease : false
13
42
14
- - name : Execute VBScript
15
- run : cscript.exe //Nologo client.vbs
You can’t perform that action at this time.
0 commit comments