From ff4658903fc4420db16b0dde37cedee06c3014e5 Mon Sep 17 00:00:00 2001 From: Felipe Date: Sat, 7 Sep 2024 21:28:34 -0300 Subject: [PATCH] Testes com github actions --- .github/workflows/dotnet.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8fe8a27..503a3b9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -27,10 +27,12 @@ jobs: - name: Test run: dotnet test --no-restore --no-build --verbosity normal -c Release - name: Pack - run: dotnet pack --no-restore --no-build -c Release - - name: csproj version - run: sed -n 's:.*\(.*\).*:\1:p' ./src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj - - name: Ls - run: echo $GITHUB_PATH + run: dotnet pack --no-restore --no-build -c Release -o ./package + - name: Get package version + run: PKG_VERSION=$(sed -n 's:.*\(.*\).*:\1:p' ./src/FoSouzaDev.Common.Domain/FoSouzaDev.Common.Domain.csproj); echo $PKG_VERSION + - name: Add package version to GITHUB_ENV + run: echo 'PKG_VERSION=$PKG_VERSION' >> $GITHUB_ENV + - name: Publish in nuget.org + run: ls; echo $PKG_VERSION # ${{ secrets.NUGETORG }}