Skip to content

Commit

Permalink
Change github actions to not use set-env
Browse files Browse the repository at this point in the history
  • Loading branch information
migafgarcia committed Nov 12, 2021
1 parent be1e04e commit b7cd9c8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Test with dotnet
run: dotnet test --configuration Release

publish:
runs-on: ubuntu-latest
needs: build
Expand All @@ -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'
Expand Down

0 comments on commit b7cd9c8

Please sign in to comment.