Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tribow committed Sep 2, 2022
0 parents commit e0813ef
Show file tree
Hide file tree
Showing 19 changed files with 884 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SOLUTION=Mod.Template.sln
ARTIFACTS=Build/Distance Mod Template.zip
RELEASE_BODY=This release was automatically generated as part of a GitHub workflow. Please read the repository README for more info.
66 changes: 66 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

*.bat text eol=crlf
*.csproj text eol=crlf
46 changes: 46 additions & 0 deletions .github/workflows/auto-deploy.yml
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/[email protected]
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- 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/[email protected]
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 }}"
Loading

0 comments on commit e0813ef

Please sign in to comment.