From b7cd9c8be81211b8dc4f8a748a66333ec20dbfe1 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Date: Fri, 12 Nov 2021 18:02:29 +0000 Subject: [PATCH] Change github actions to not use set-env --- .github/workflows/dotnetcore.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index dbbc08e..34d9f09 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -24,7 +24,7 @@ jobs: - name: Test with dotnet run: dotnet test --configuration Release - + publish: runs-on: ubuntu-latest needs: build @@ -38,12 +38,9 @@ jobs: with: dotnet-version: 6.x - - name: Determine version - run: echo "::set-env name=VERSION::$(git describe --tags --dirty)" - - name: Publish with dotnet - run: dotnet publish src/Cmf.Tools.TestDetector.Console/Cmf.Tools.TestDetector.Console.csproj --output win-64x/ -r win-x64 --self-contained --configuration Release /p:PublishSingleFile=true /p:UseAppHost=true /p:Version=$VERSION - + run: dotnet publish src/Cmf.Tools.TestDetector.Console/Cmf.Tools.TestDetector.Console.csproj --output win-64x/ -r win-x64 --self-contained --configuration Release /p:PublishSingleFile=true /p:UseAppHost=true /p:Version=$(git describe --tags --dirty) + - name: Create zip run: zip -r '../win-64x.zip' * working-directory: './win-64x'