Skip to content

Commit e84df66

Browse files
committed
Make a release with the Windows xp launcher
1 parent 54e02ea commit e84df66

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

.github/workflows/vbscript.yml

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,42 @@
1-
name: VBScript Execution
1+
name: VBScript Build and Release
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main # or any branch you want to trigger the release
47

58
jobs:
6-
run-vbscript:
7-
name: Run VBScript
9+
build:
10+
name: Convert and Release
811
runs-on: windows-latest
912

1013
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
1342

14-
- name: Execute VBScript
15-
run: cscript.exe //Nologo client.vbs

0 commit comments

Comments
 (0)