CODEBASE: Steam development branch updating action (#370)

This commit is contained in:
Snarling 2023-02-15 17:10:45 -05:00 committed by GitHub
parent ed59f4bfe7
commit 56ce1df0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 0 deletions

29
.github/workflows/steamUpdate.yml vendored Normal file

@ -0,0 +1,29 @@
# update the steam development version
name: "Deploy dev to steam development branch"
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup steamcmd
uses: CyberAndrii/setup-steamcmd@v1
- name: Checkout dev branch
uses: actions/checkout@v3
with:
ref: dev
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build and deploy
run: |
npm ci
npm run build
npm run electron
steamcmd +login ${{ secrets.STEAM_USERNAME }} ${{ secrets.STEAM_PASSWORD }} +run_app_build ../tools/steamdev.vdf +quit

40
tools/steamdev.vdf Normal file

@ -0,0 +1,40 @@
"AppBuild"
{
"AppID" "1812820"
"Desc" "Dev update from github action"
"ContentRoot" "/"
"BuildOutput" "/"
"SetLive" "development"
"Depots"
{
"1812821"
{
"FileMapping"
{
"LocalPath" ".build/bitburner-win32-x64/*"
"DepotPath" "."
"recursive" "1"
}
}
"1812822"
{
"FileMapping"
{
"LocalPath" ".build/bitburner-darwin-x64/*"
"DepotPath" "."
"recursive" "1"
}
}
"1812823"
{
"FileMapping"
{
"LocalPath" ".build/bitburner-linux-x64/*"
"DepotPath" "."
"recursive" "1"
}
}
}
}