Skip to content

Commit

Permalink
Make MonkeyLoader variant download from Steam
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmxyz authored Jan 11, 2024
1 parent 1ce4ebf commit d7425d5
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/build-monkey.yml
Original file line number Diff line number Diff line change
@@ -41,20 +41,40 @@ jobs:
build-MonkeyLoader:
runs-on: ubuntu-latest
steps:
- name: Fetch repository
uses: actions/checkout@v4
with:
path: ${{ env.PROJECT_PATH }}
- name: Fetch latest Resonite
uses: actions/checkout@v4
- name: Ensure working directory exists
run: mkdir -p '${{ env.PROJECT_PATH }}'
working-directory: "${{ github.workspace }}"
- name: Get Resonite Infos
run: |
{
echo "APP_INFO<<EOFEOF"
curl https://api.steamcmd.net/v1/info/2519830
echo ""
echo "EOFEOF"
} >> "$GITHUB_ENV"
- name: Get Resonite from Cache
id: cache-resonite
uses: actions/cache@v3.3.3
with:
repository: ${{ env.RESONITE_CLONE_REPO }}
token: ${{ secrets.RESONITE_CLONE_TOKEN }}
path: ${{ env.ResonitePath }}/..
path: "${{ env.ResonitePath }}"
key: "${{ fromJson( env.APP_INFO ).data['2519830'].depots.branches.public.buildid }}"
- name: Download Steam
if: steps.cache-resonite.outputs.cache-hit != 'true'
uses: CyberAndrii/setup-steamcmd@b786e0da44db3d817e66fa3910a9560cb28c9323
- name: Download Resonite
if: steps.cache-resonite.outputs.cache-hit != 'true'
run: |
steamcmd '+@sSteamCmdForcePlatformType windows' '+force_install_dir "${{ env.ResonitePath }}"' '+login "${{ secrets.STEAM_USER }}" "${{ secrets.STEAM_TOKEN }}"' '+app_license_request 2519830' '+app_update 2519830 validate' '+quit'
#The following line makes the cache much much smaller:
rm -r '${{ env.ResonitePath }}/RuntimeData/PreCache'
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Fetch repository
uses: actions/checkout@v4
with:
path: ${{ env.PROJECT_PATH }}
- name: Fetch MonkeyLoader
uses: robinraju/release-downloader@efa4cd07bd0195e6cc65e9e30c251b49ce4d3e51
with:

0 comments on commit d7425d5

Please sign in to comment.