-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/hkarargi/Multitool
- Loading branch information
Showing
2 changed files
with
138 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,123 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags: | ||
- '*' | ||
|
||
env: | ||
PROJECT_NAME: Multitool | ||
|
||
MOD_HELPER_NAME: Btd6ModHelper | ||
BLOONSTD6: ./BloonsTD6 | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone Repo | ||
uses: actions/checkout@master | ||
with: | ||
path: ${{ env.PROJECT_NAME }} | ||
|
||
|
||
- name: Download Latest MelonLoader | ||
if: env.MELONLOADER_BRANCH == '' | ||
uses: robinraju/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: LavaGang/MelonLoader | ||
fileName: MelonLoader.x64.zip | ||
tarBall: false | ||
zipBall: false | ||
latest: true | ||
- name: Extract Latest MelonLoader | ||
if: env.MELONLOADER_BRANCH == '' | ||
shell: bash | ||
run: unzip MelonLoader.x64.zip -d ${{ env.BLOONSTD6 }} | ||
|
||
|
||
- name: Download Specific MelonLoader | ||
if: env.MELONLOADER_BRANCH != '' | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow: build.yml | ||
branch: ${{ env.MELONLOADER_BRANCH }} | ||
name: MelonLoader.Linux.x64.CI.Release | ||
repo: LavaGang/MelonLoader | ||
path: ${{ env.BLOONSTD6 }} | ||
|
||
|
||
- name: Clone Dependencies Repo | ||
uses: actions/checkout@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: doombubbles/btd6-ci-dependencies | ||
ref: main | ||
path: ${{ env.BLOONSTD6 }}/MelonLoader/Il2CppAssemblies | ||
|
||
|
||
- name: Download Latest Mod Helper | ||
uses: robinraju/[email protected] | ||
if: env.MOD_HELPER_BRANCH == '' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: gurrenm3/BTD-Mod-Helper | ||
fileName: ${{ env.MOD_HELPER_NAME }}.dll | ||
out-file-path: ${{ env.BLOONSTD6 }}/Mods/ | ||
tarBall: false | ||
zipBall: false | ||
latest: true | ||
|
||
|
||
- name: Download Specific Mod Helper | ||
uses: dawidd6/action-download-artifact@v2 | ||
if: env.MOD_HELPER_BRANCH != '' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow: build.yml | ||
name: ${{ env.MOD_HELPER_NAME }}.dll | ||
branch: ${{ env.MOD_HELPER_BRANCH }} | ||
repo: gurrenm3/BTD-Mod-Helper | ||
path: ${{ env.BLOONSTD6 }}/Mods/ | ||
|
||
|
||
- name: Download btd6.targets | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
choco install -y wget | ||
fi | ||
wget https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/BloonsTD6%20Mod%20Helper/btd6.targets | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 6.0.x # net6 can still build older as well | ||
|
||
|
||
- name: Build | ||
run: dotnet build -c Release -p:BloonsTD6="../${{ env.BLOONSTD6 }}" "${{ env.PROJECT_NAME }}/${{ env.PROJECT_NAME }}.csproj" | ||
|
||
|
||
- name: Upload Mod DLL | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.PROJECT_NAME }}.dll | ||
path: ${{ env.BLOONSTD6 }}/Mods/${{ env.PROJECT_NAME }}.dll | ||
|
||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{ env.BLOONSTD6 }}/Mods/${{ env.PROJECT_NAME }}.dll | ||
body_path: ${{ env.PROJECT_NAME }}/LATEST.md | ||
fail_on_unmatched_files: true |
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 |
---|---|---|
@@ -1 +1,15 @@ | ||
# Multitool | ||
<a href="https://github.com/hkarargi/Multitool/releases/latest/download/Multitool.dll"> | ||
<img align="left" alt="Multitool" height="90" src="Icon.png"> | ||
<img align="right" alt="Download" height="75" src="https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/BloonsTD6%20Mod%20Helper/Resources/DownloadBtn.png"> | ||
</a> | ||
|
||
<h1 align="center">Multitool</h1> | ||
|
||
-A mod that lets you change the current round, the amount of cash you have, and the amount of lives you have! | ||
|
||
Controls: | ||
F6: Change Round | ||
F7: Change Money | ||
F8: Change Health | ||
|
||
[![Requires BTD6 Mod Helper](https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/banner.png)](https://github.com/gurrenm3/BTD-Mod-Helper#readme) |