-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now Downloading Resonite from Steam (#47)
removed secret RESONITE_CLONE_TOKEN added secrets STEAM_USER and STEAM_TOKEN closes #44
- Loading branch information
Showing
9 changed files
with
97 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,9 @@ on: | |
required: false | ||
default: "" | ||
secrets: | ||
RESONITE_CLONE_TOKEN: | ||
STEAM_USER: | ||
required: true | ||
STEAM_TOKEN: | ||
required: true | ||
env: | ||
ARTIFACT_NAME: "SampleMod" | ||
|
@@ -33,28 +35,47 @@ env: | |
OUTPUT_FOLDER: "bin/MonkeyLoader/Release" | ||
TEST_PROJECT_FILE: "Test/Test.csproj" | ||
MOD_LOADER_TEST_PROJECT_FILE: "TestMonkey/TestMonkey.csproj" | ||
RESONITE_CLONE_REPO: "${{ github.repository_owner }}/ResoniteFiles" | ||
defaults: | ||
run: | ||
working-directory: "./repo" | ||
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/[email protected] | ||
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,9 @@ on: | |
required: false | ||
default: "" | ||
secrets: | ||
RESONITE_CLONE_TOKEN: | ||
STEAM_USER: | ||
required: true | ||
STEAM_TOKEN: | ||
required: true | ||
env: | ||
ARTIFACT_NAME: "SampleMod" | ||
|
@@ -33,28 +35,47 @@ env: | |
OUTPUT_FOLDER: "bin/RML/Release/net472" | ||
TEST_PROJECT_FILE: "Test/Test.csproj" | ||
MOD_LOADER_TEST_PROJECT_FILE: "TestRML/TestRML.csproj" | ||
RESONITE_CLONE_REPO: "${{ github.repository_owner }}/ResoniteFiles" | ||
defaults: | ||
run: | ||
working-directory: "./repo" | ||
jobs: | ||
build-ResoniteModLoader: | ||
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/[email protected] | ||
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 latest ResoniteModLoader | ||
uses: robinraju/release-downloader@efa4cd07bd0195e6cc65e9e30c251b49ce4d3e51 | ||
with: | ||
|
@@ -64,6 +85,7 @@ jobs: | |
out-file-path: RML/ | ||
- name: Move ResoniteModLoader files | ||
run: | | ||
ls -l $ResonitePath | ||
mkdir -p "$ResonitePath/rml_mods" | ||
mkdir -p "$ResonitePath/rml_libs" | ||
mkdir -p "$ResonitePath/Libraries" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters