Skip to content

Merge pull request #7 from NSGolova/patch-5 #12

Merge pull request #7 from NSGolova/patch-5

Merge pull request #7 from NSGolova/patch-5 #12

Workflow file for this run

name: MBSS
on:
push:
branches:
- main
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
jobs:
mbss:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download MBSS
run: |
$url = "https://api.github.com/repos/beat-forge/MBSS/releases/latest"
$response = Invoke-RestMethod -Uri $url
$response.assets | ForEach-Object {
if ($_.name -like "*MBSS*.zip") {
$url = $_.browser_download_url
Invoke-WebRequest -Uri $url -OutFile "MBSS.zip"
}
}
- name: Unzip MBSS to current directory
run: Expand-Archive -Path MBSS.zip -DestinationPath .
- name: Start MBSS
if: "!contains(github.event.head_commit.message, ':reset')"
run: ./MBSS.exe
- name: Start MBSS and reset
if: "contains(github.event.head_commit.message, ':reset')"
run: |
./MBSS.exe --reset