From 56ce1df0c8033bacbac2c2802dc3e001811a7e50 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:10:45 -0500 Subject: [PATCH] CODEBASE: Steam development branch updating action (#370) --- .github/workflows/steamUpdate.yml | 29 ++++++++++++++++++++++ tools/steamdev.vdf | 40 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .github/workflows/steamUpdate.yml create mode 100644 tools/steamdev.vdf diff --git a/.github/workflows/steamUpdate.yml b/.github/workflows/steamUpdate.yml new file mode 100644 index 000000000..f82a5d855 --- /dev/null +++ b/.github/workflows/steamUpdate.yml @@ -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 diff --git a/tools/steamdev.vdf b/tools/steamdev.vdf new file mode 100644 index 000000000..bcb7968ae --- /dev/null +++ b/tools/steamdev.vdf @@ -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" + } + } + } +}