Skip to content

Commit

Permalink
Added github yaml workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
REHERC committed Jul 30, 2021
1 parent 974453e commit cf6cdac
Showing 1 changed file with 46 additions and 0 deletions.
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 }}"

0 comments on commit cf6cdac

Please sign in to comment.