I hate how slow the testing turnaround is on actions #5
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
name: VBScript Build and Release | |
on: | |
push: | |
branches: | |
- main # Set this to your preferred branch | |
jobs: | |
build: | |
name: Convert and Release | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Download VBScript to Executable Converter | |
run: | | |
Invoke-WebRequest -Uri "https://github.com/Makazzz/VbsToExePortable/releases/download/3.1.99.1/VbsToExePortable_3.2_Dev_Test_1.paf.exe" -OutFile "VbsToExePortable.paf.exe" | |
Get-Item "VbsToExePortable.paf.exe" | |
- name: Convert VBScript to Executable | |
run: | | |
.\VbsToExePortable.paf.exe -i "client.vbs" -o "windowsxp-2009scape.exe" | |
Get-Item "windowsxp-2009scape.exe" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: Release ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
- 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 }} | |
asset_path: ./windowsxp-2009scape.exe | |
asset_name: windowsxp-2009scape.exe | |
asset_content_type: application/octet-stream |