Skip to content

Commit

Permalink
Make a release with the Windows xp launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dginovker committed Jan 5, 2024
1 parent 54e02ea commit e84df66
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions .github/workflows/vbscript.yml
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

0 comments on commit e84df66

Please sign in to comment.