-
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.
Refactor to fix build issues and add automated CI/CD builds
- Loading branch information
Showing
24 changed files
with
389 additions
and
371 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SOLUTION=Distance.CameraAdditions.sln | ||
ARTIFACTS=Build/Distance Camera Additions.zip | ||
RELEASE_BODY=This release was automatically generated as part of a GitHub workflow. Please read the repository README for more info. |
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,46 @@ | ||
name: Build and Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "*.md" | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "*.md" | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build and Publish GitHub Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: DotEnv | ||
uses: xom9ikk/dotenv@v1.0.2 | ||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1.0.5 | ||
- name: Restore Solution Packages | ||
run: nuget restore $env:SOLUTION | ||
- name: Build Solution | ||
run: msbuild $env:SOLUTION -m | ||
- name: Format Artifact List | ||
id: artifacts | ||
uses: frabert/replace-string-action@v2.0 | ||
with: | ||
string: ${{ env.ARTIFACTS }} | ||
pattern: ';' | ||
replace-with: '\n' | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: "Workflow-Automated Deployment [#${{ github.run_number }}]" | ||
tag_name: release-workflow-${{ github.run_number }} | ||
body: "${{ env.RELEASE_BODY }}" | ||
files: "${{ steps.artifacts.outputs.replaced }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "Tool.BuildTargets"] | ||
path = Tool.BuildTargets | ||
url = https://github.com/Distance-Modding/Tool.BuildTargets | ||
[submodule "Tool.ProjectTargets"] | ||
path = Tool.ProjectTargets | ||
url = https://github.com/Distance-Modding/Tool.ProjectTargets |
16 changes: 16 additions & 0 deletions
16
Distance.CameraAdditions.Content/Distance.CameraAdditions.Content.projitems
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,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' < '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | ||
<HasSharedItems>true</HasSharedItems> | ||
<SharedGUID>9ac30095-8374-47e1-83c5-c474c9f1e036</SharedGUID> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration"> | ||
<Import_RootNamespace>Distance.CameraAdditions.Content</Import_RootNamespace> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)Mod\mod.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
13 changes: 13 additions & 0 deletions
13
Distance.CameraAdditions.Content/Distance.CameraAdditions.Content.shproj
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>9ac30095-8374-47e1-83c5-c474c9f1e036</ProjectGuid> | ||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" /> | ||
<PropertyGroup /> | ||
<Import Project="Distance.CameraAdditions.Content.projitems" Label="Shared" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" /> | ||
</Project> |
File renamed without changes.
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 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,5 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<ModName>Distance Camera Additions</ModName> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.