Skip to content

Commit

Permalink
Fix --version not returning the correct version (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimdalen authored Jan 8, 2023
1 parent 030e2f8 commit ad48d4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
parsedVersion=$(echo ${{ github.ref }} | cut -dv -f2)
echo "::set-output name=version::$parsedVersion"
- name: Publish BicepDocs
run: dotnet publish --configuration release --self-contained true -p:AssemblyVersion=${{ steps.get-version.outputs.version }} -p:PublishTrimmed=true -p:PublishSingleFile=true -p:TrimmerDefaultAction=copyused -p:SuppressTrimAnalysisWarnings=true -r ${{ matrix.rid }} ./src/BicepDocs.Cli/BicepDocs.Cli.csproj
run: dotnet publish --configuration release --self-contained true -p:AssemblyVersion=${{ steps.get-version.outputs.version }} -p:Version=${{ steps.get-version.outputs.version }} -p:PublishTrimmed=true -p:PublishSingleFile=true -p:TrimmerDefaultAction=copyused -p:SuppressTrimAnalysisWarnings=true -r ${{ matrix.rid }} ./src/BicepDocs.Cli/BicepDocs.Cli.csproj
- name: Rename binary
if: matrix.rid != 'win-x64'
run: mv ./src/BicepDocs.Cli/bin/release/net6.0/${{ matrix.rid }}/publish/bicepdocs ./src/BicepDocs.Cli/bin/release/net6.0/${{ matrix.rid }}/publish/bicepdocs-${{ matrix.rid }}
Expand Down Expand Up @@ -82,8 +82,8 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: ./binaries/**/*
Expand Down

0 comments on commit ad48d4d

Please sign in to comment.