From cf6cdac5e5f31684469a8f77afb5ca3efa8c34cc Mon Sep 17 00:00:00 2001 From: Reherc Date: Fri, 30 Jul 2021 02:29:03 +0200 Subject: [PATCH] Added github yaml workflow file --- .github/workflows/auto-deploy.yml | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/auto-deploy.yml diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml new file mode 100644 index 0000000..9989102 --- /dev/null +++ b/.github/workflows/auto-deploy.yml @@ -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 }}" \ No newline at end of file