mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-12-11 20:15:10 +01:00
fix actions
This commit is contained in:
parent
4c93a5f3cd
commit
2abd7fac6d
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -19,4 +19,4 @@ jobs:
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Raicuparta.QuantumSpaceBuddies
|
||||
path: .\QSB\Bin\Debug
|
||||
path: .\QSB-NH\Bin\Debug
|
||||
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -16,7 +16,6 @@ permissions:
|
||||
env:
|
||||
PROJ_USERNAME: Raicuparta
|
||||
PROJ_NAME: QuantumSpaceBuddies
|
||||
REAL_PROJ_NAME: QSB
|
||||
|
||||
jobs:
|
||||
pre_job:
|
||||
@ -34,7 +33,7 @@ jobs:
|
||||
|
||||
- name: Read Manifest
|
||||
id: read-manifest
|
||||
run: echo "manifest=$(< ./${{ env.REAL_PROJ_NAME }}/manifest.json sed ':a;N;$!ba;s/\n/ /g')" >> $GITHUB_OUTPUT
|
||||
run: echo "manifest=$(< ./QSB/manifest.json sed ':a;N;$!ba;s/\n/ /g')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check For Release
|
||||
id: check-tag
|
||||
@ -63,9 +62,6 @@ jobs:
|
||||
- name: Setup .NET
|
||||
uses: "actions/setup-dotnet@v3"
|
||||
|
||||
- name: Remove .csproj.user
|
||||
run: if (Test-Path ${{ env.REAL_PROJ_NAME }}/${{ env.REAL_PROJ_NAME }}.csproj.user) { rm ${{ env.REAL_PROJ_NAME }}/${{ env.REAL_PROJ_NAME }}.csproj.user }
|
||||
|
||||
- name: Build Mod
|
||||
run: dotnet build -c Release
|
||||
|
||||
@ -73,10 +69,10 @@ jobs:
|
||||
uses: "actions/upload-artifact@v3"
|
||||
with:
|
||||
name: "${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}"
|
||||
path: "${{ env.REAL_PROJ_NAME }}/bin/Release"
|
||||
path: "QSB-NH/bin/Release"
|
||||
|
||||
- name: Zip For Release
|
||||
run: 7z a ${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}.zip ./${{ env.REAL_PROJ_NAME }}/bin/Release/**
|
||||
run: 7z a ${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}.zip ./QSB-NH/bin/Release/**
|
||||
|
||||
- name: Create Release
|
||||
uses: "ncipollo/release-action@v1"
|
||||
|
||||
@ -29,4 +29,27 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
||||
<!-- qsb-nh is the top of the dependency graph so things have to be done here-->
|
||||
<Target Name="clean after building" AfterTargets="PostBuildEvent">
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)\*.exe.config" />
|
||||
</ItemGroup>
|
||||
<Delete Files="@(_Files)" />
|
||||
</Target>
|
||||
|
||||
<PropertyGroup>
|
||||
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
|
||||
</PropertyGroup>
|
||||
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)/*.dll" />
|
||||
<_Files Include="$(OutputPath)/*.exe" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -13,30 +13,10 @@
|
||||
<NoWarn>CS1998;CS0649</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="clean after building" AfterTargets="PostBuildEvent">
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)\*.exe.config" />
|
||||
</ItemGroup>
|
||||
<Delete Files="@(_Files)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
|
||||
<Exec Command=".\MirrorWeaver "$(TargetPath)"" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" />
|
||||
</Target>
|
||||
|
||||
<PropertyGroup>
|
||||
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
|
||||
</PropertyGroup>
|
||||
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)/*.dll" />
|
||||
<_Files Include="$(OutputPath)/*.exe" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\LICENSE">
|
||||
<Pack>True</Pack>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user