generated from Distance-Modding/Template.CSharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 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,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 }}" |