-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.2 KB
/
mbss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Run MBSS
on:
push:
branches:
- main
schedule:
- cron: '0 */6 * * *'
jobs:
run-mbss:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Git
run: |
git config --global user.name "MBSS"
git config --global user.email "mbss@beatforge.net"
- name: Create MBSS directory at root
run: mkdir C:\mbss
shell: pwsh
- name: Download latest MBSS release
run: |
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/beat-forge/mbss/releases/latest"
$downloadUrl = ($latestRelease.assets | Where-Object { $_.name -eq "mbss-strip.exe" }).browser_download_url
Invoke-WebRequest -Uri $downloadUrl -OutFile C:\mbss\mbss-strip.exe
shell: pwsh
- name: Run MBSS
run: .\mbss-strip.exe
working-directory: C:\mbss
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
REPO_PATH: ${{ github.workspace }}
RUST_LOG: debug