-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a release with the Windows xp launcher
- Loading branch information
Showing
1 changed file
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
name: VBScript Execution | ||
name: VBScript Build and Release | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main # or any branch you want to trigger the release | ||
|
||
jobs: | ||
run-vbscript: | ||
name: Run VBScript | ||
build: | ||
name: Convert and Release | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Convert VBScript to Executable | ||
run: | | ||
vbstoexe.exe client.vbs windowsxp-2009scape.exe | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step below, which provides the upload URL. | ||
asset_path: ./windowsxp-2009scape.exe | ||
asset_name: windowsxp-2009scape.exe | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Execute VBScript | ||
run: cscript.exe //Nologo client.vbs |