From a5c4685fee3041818f94de85823dca4539db9335 Mon Sep 17 00:00:00 2001 From: Daniel Kuschny Date: Mon, 23 Nov 2020 12:51:51 +0100 Subject: [PATCH] Prepare Release 1.1.0 #6 --- .github/workflows/build.yml | 36 ++++++++++++++++++++++ .github/workflows/release.yml | 57 +++++++++++++++++++++++++++++++++++ Directory.Build.props | 2 +- LICENSE | 19 ++++++++++++ 4 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml create mode 100644 LICENSE diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1b1776b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build +on: + push: + branches: + - develop + - master + pull_request: + +jobs: + build: + name: Build and Test + runs-on: windows-latest + strategy: + matrix: + configuration: [Debug, Release] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.100' + - uses: microsoft/setup-msbuild@v1 + - run: msbuild SigningServer.sln -restore -t:Rebuild -p:Configuration=${{ matrix.configuration }} -p:Platform=x64 -p:CopyToDist=true -m -p:BuildNumber=${{ github.run_number }} + - run: | + & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" SigningServer.Test\bin\x64\${{ matrix.configuration }}\net48\SigningServer.Test.dll /Platform:x64 + - name: Archive Server Artifacts + uses: actions/upload-artifact@v2 + with: + name: SigningServer.Server + path: | + Dist/${{ matrix.configuration }}/SigningServer.Server/*.* + - name: Archive Client Artifacts + uses: actions/upload-artifact@v2 + with: + name: SigningServer.Client + path: | + Dist/${{ matrix.configuration }}/SigningServer.Client/*.* \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bd15626 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: Release +on: + push: + tags: + - 'v*' + +jobs: + build: + name: Create Release + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: montudor/action-zip@v0.1.0 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.100' + - uses: microsoft/setup-msbuild@v1 + - run: msbuild SigningServer.sln -restore -t:Rebuild -p:Configuration=Release -p:Platform=x64 -p:CopyToDist=true -m + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Changes in this Release + - TODO + draft: false + prerelease: false + + - name: Package Server + run: zip -qq -r ./dist/Release/SigningServer.Server.zip ./Release/SigningServer.Server + - name: Upload Server + id: upload-server + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist/Release/SigningServer.Server.zip + asset_name: SigningServer.Server-x64-${{ github.ref }}.zip + asset_content_type: application/zip + + - name: Package Client + run: zip -qq -r ./dist/Release/SigningServer.Client.zip ./Release/SigningServer.Client + - name: Upload Client + id: upload-client + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist/Release/SigningServer.Client.zip + asset_name: SigningServer.Client-x64-${{ github.ref }}.zip + asset_content_type: application/zip \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index a4dfd9d..b899d40 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -15,7 +15,7 @@ true 0 - 1.0.0.$(BuildNumber) + 1.1.0.$(BuildNumber) Daniel Kuschny Copyright © 2020 Daniel Kuschny CoderLine SigningServer diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b16a12c --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +The MIT License (MIT) + +Copyright (c) 2020 Daniel Kuschny + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN