From 39d626c8d889246e3064349bca21a3ec0ce30102 Mon Sep 17 00:00:00 2001 From: Tyrrrz Date: Tue, 10 Nov 2020 23:30:22 +0200 Subject: [PATCH] Update build infra --- .github/workflows/CD.yml | 22 +++++++++++----------- .github/workflows/CI.yml | 36 ++++++++++++++++++------------------ CliFx/CliFx.csproj | 1 - 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 8ddad3d..aa87564 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -3,23 +3,23 @@ name: CD on: push: tags: - - '*' + - "*" jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2.3.3 + - name: Checkout + uses: actions/checkout@v2.3.3 - - name: Install .NET Core - uses: actions/setup-dotnet@v1.7.2 - with: - dotnet-version: 3.1.100 + - name: Install .NET + uses: actions/setup-dotnet@v1.7.2 + with: + dotnet-version: 5.0.100 - - name: Pack - run: dotnet pack CliFx --configuration Release + - name: Pack + run: dotnet pack CliFx --configuration Release - - name: Deploy - run: dotnet nuget push CliFx/bin/Release/*.nupkg -s nuget.org -k ${{ secrets.NUGET_TOKEN }} + - name: Deploy + run: dotnet nuget push CliFx/bin/Release/*.nupkg -s nuget.org -k ${{ secrets.NUGET_TOKEN }} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d92e8aa..0e02e0a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,25 +11,25 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - name: Checkout - uses: actions/checkout@v2.3.3 + - name: Checkout + uses: actions/checkout@v2.3.3 - - name: Install .NET Core - uses: actions/setup-dotnet@v1.7.2 - with: - dotnet-version: 3.1.100 + - name: Install .NET + uses: actions/setup-dotnet@v1.7.2 + with: + dotnet-version: 5.0.100 - - name: Build & test - run: dotnet test --configuration Release --logger GitHubActions + - name: Build & test + run: dotnet test --configuration Release --logger GitHubActions - - name: Upload coverage - uses: codecov/codecov-action@v1.0.5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: CliFx.Tests/bin/Release/Coverage.xml + - name: Upload coverage + uses: codecov/codecov-action@v1.0.5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: CliFx.Tests/bin/Release/Coverage.xml - - name: Upload coverage (analyzers) - uses: codecov/codecov-action@v1.0.5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: CliFx.Analyzers.Tests/bin/Release/Coverage.xml + - name: Upload coverage (analyzers) + uses: codecov/codecov-action@v1.0.5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: CliFx.Analyzers.Tests/bin/Release/Coverage.xml diff --git a/CliFx/CliFx.csproj b/CliFx/CliFx.csproj index f2f5ca9..f7018c5 100644 --- a/CliFx/CliFx.csproj +++ b/CliFx/CliFx.csproj @@ -28,7 +28,6 @@ -