Skip to content

Update builds again

Update builds again #3

Workflow file for this run

name: Create Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Download References
run: |
echo "[Download References] Downloading DepotDownloader"
mkdir -p DepotDownloader
cd DepotDownloader
wget -q https://github.com/SteamRE/DepotDownloader/releases/latest/download/DepotDownloader-linux-x64.zip
unzip -qq -o DepotDownloader-linux-x64.zip
chmod +x DepotDownloader
echo 'regex:RustDedicated_Data/Managed/.*\.dll' > filelist.txt
echo "[Download References] Downloading Rust dlls"
./DepotDownloader -app 258550 -depot 258552 -filelist filelist.txt -dir $(pwd)
cd ..
mkdir -p src/References
echo "[Download References] Moving Rust dlls"
mv -f DepotDownloader/RustDedicated_Data/Managed/*.dll src/References/
mkdir -p Carbon
cd Carbon
echo "[Download References] Downloading Carbon"
wget -qO- https://github.com/CarbonCommunity/Carbon/releases/download/production_build/Carbon.Linux.Release.tar.gz | tar zxvf -
cd ..
echo "[Download References] Moving Carbon dlls"
mv -f Carbon/carbon/managed/*.dll src/References/
mkdir -p Oxide
cd Oxide
echo "[Download References] Downloading Oxide"
wget -q https://github.com/OxideMod/Oxide.Rust/releases/latest/download/Oxide.Rust-Linux.zip
unzip -qq -o Oxide.Rust-Linux.zip
cd ..
echo "[Download References] Moving Oxide dlls"
mv -f Oxide/RustDedicated_Data/Managed/*.dll src/References/
- name: Build DLLs - Oxide
run: dotnet build Rust.UIFramework.csproj -c Release /p:Platform=Oxide /p:Version=$VERSION
working-directory: src/Rust.UIFramework
- name: Build DLLs - Carbon
run: dotnet build Rust.UIFramework.csproj -c Release /p:Platform=Carbon /p:Version=$VERSION
working-directory: src/Rust.UIFramework
- name: Move DLLs
run: |
mkdir -p bin
mv Rust.UIFramework/bin/Oxide/Release/net48/Oxide.Ext.UiFramework.dll bin/
mv Rust.UIFramework/bin/Carbon/Release/net48/Carbon.Ext.UiFramework.dll bin/
working-directory: src
- name: Upload Release Assets
run: |
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///')
gh release upload $TAG src/bin/*.dll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}