Skip to content

Commit

Permalink
remove explicit variables and gitversion build step
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jul 8, 2024
1 parent 3d4782a commit 53c5413
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
/target:"Restore;Publish" `
/m /nodeReuse:false `
/property:"PublishProfile=SelfContained" `
/property:"Version=${env:GitVersion_MajorMinor}" `
/property:"NuGetVersion=${env:GitVersion_NuGetVersion}" `
/property:"AssemblyVersion=${env:GitVersion_AssemblySemVer}"
/property:GitVersion_NoFetchEnabled=true
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand All @@ -54,15 +52,16 @@ jobs:

- name: Create Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: r${{ steps.gitversion.outputs.version }}
release_name: Release ${{ steps.gitversion.outputs.version }}
tag_name: r${{ env.GitVersion_AssemblySemVersion }}
release_name: Release ${{ env.GitVersion_AssemblySemVersion }}
draft: false
prerelease: false

- name: Upload Release Asset
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 53c5413

Please sign in to comment.