Skip to content

Commit

Permalink
+changelog-ignore: simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdcdev committed Oct 9, 2023
1 parent d6fc7eb commit 8b76463
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ jobs:
with:
dotnet-version: 7.0.x
- name: Build project
run: dotnet build ${{ env.PROJECT_PATH }} -o ${{ env.BUILD_OUTPUT }} --configuration Release
- name: Copy Assets
run: |
mkdir --parents "${{ env.MOD_OUTPUT }}"
cp "${{ env.BUILD_OUTPUT }}/${{ env.PROJECT_NAME }}.dll" "${{ env.MOD_OUTPUT }}"
run: dotnet build ${{ env.PROJECT_PATH }} -o ${{ env.MOD_OUTPUT }} --configuration Release
- uses: vimtor/action-zip@v1
with:
files: ${{ env.ARTIFACT_OUTPUT }}
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
ASSET_NAME: jcdcdev.Eco.Signs-${{ needs.determine-version.outputs.semVer }}
PROJECT_NAME: jcdcdev.Eco.Signs
PROJECT_PATH: ./src/jcdcdev.Eco.Signs.csproj
BUILD_OUTPUT: ./build-output
MOD_OUTPUT: ./build-assets/Mods/jcdcdev.Eco.Signs
ARTIFACT_OUTPUT: ./build-assets
outputs:
Expand All @@ -52,11 +51,7 @@ jobs:
with:
dotnet-version: 7.0.x
- name: Build project
run: dotnet build ${{ env.PROJECT_PATH }} -o ${{ env.BUILD_OUTPUT }} --configuration Release -p:Version=${{ env.SEMVER }}
- name: Copy Assets
run: |
mkdir --parents "${{ env.MOD_OUTPUT }}"
cp "${{ env.BUILD_OUTPUT }}/${{ env.PROJECT_NAME }}.dll" "${{ env.MOD_OUTPUT }}"
run: dotnet build ${{ env.PROJECT_PATH }} -o ${{ env.MOD_OUTPUT }} --configuration Release -p:Version=${{ env.SEMVER }}
- uses: vimtor/action-zip@v1
with:
files: ${{ env.ARTIFACT_OUTPUT }}
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<LibFiles Include="$(MSBuildProjectDirectory)\lib\*.dll"/>
<OutputFiles Include="$(TargetDir)$(ProjectName).dll"/>
<OutputFiles Include="$(TargetDir)\**\*.*;"/>
</ItemGroup>

<Copy SourceFiles="@(OutputFiles)" DestinationFolder="$(ModOutputPath)"/>
Expand Down
1 change: 1 addition & 0 deletions src/jcdcdev.Eco.Signs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<ItemGroup>
<Reference Include="Over9000SignPowerMod">
<HintPath>lib\Over9000SignPowerMod.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>

Expand Down

0 comments on commit 8b76463

Please sign in to comment.