From 2bac24d6c1f00f38963e22e7623b8378e769fe01 Mon Sep 17 00:00:00 2001 From: MRmlik12 Date: Wed, 23 Jun 2021 13:43:09 +0200 Subject: [PATCH] Add github workflow --- .github/workflows/build-deploy.yml | 19 +++++++++++++++++++ .github/workflows/build-test.yml | 16 ++++++++++++++++ .../Vulder.SharedKernel.csproj | 1 - 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-deploy.yml create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml new file mode 100644 index 0000000..54c5095 --- /dev/null +++ b/.github/workflows/build-deploy.yml @@ -0,0 +1,19 @@ +name: build & deploy +on: [ push, pull_request ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Install dependencies + run: dotnet restore + - name: Build project + run: dotnet build --configuration Release --no-restore + - name: Build NuGet package + run: dotnet pack -c Release + - name: publish to Github Packages + run: dotnet nuget push src/Vulder.SharedKernel/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/VulderApp/index.json diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..73cd297 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,16 @@ +name: test build +on: [ pull_request ] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Install dependencies + run: dotnet restore + - name: Build project + run: dotnet build --configuration Release --no-restore \ No newline at end of file diff --git a/src/Vulder.SharedKernel/Vulder.SharedKernel.csproj b/src/Vulder.SharedKernel/Vulder.SharedKernel.csproj index cbc147e..62b460d 100644 --- a/src/Vulder.SharedKernel/Vulder.SharedKernel.csproj +++ b/src/Vulder.SharedKernel/Vulder.SharedKernel.csproj @@ -14,7 +14,6 @@ 0.1.0 Vulder.SharedKernel MRmlik12 - VulderApp https://github.com/VulderApp/SharedKernel https://github.com/VulderApp/SharedKernel/blob/main/LICENSE.md