Skip to content

Commit

Permalink
Added auto version from tag (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocMoebiuz authored Jun 25, 2022
1 parent 4f59631 commit b170e6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:

- name: Add VSTest to Path
uses: darenm/Setup-VSTest@v1

- name: Replace version in AssemblyInfo.cs
run: (Get-Content "Properties/AssemblyInfo.cs") -replace '\("\d+\.\d+\.\d+(\.\d+)?"\)', '("${{ github.event.release.tag_name }}")' | Out-File "Properties/AssemblyInfo.cs"
shell: pwsh

- name: Dump AssemblyInfo.cs
run: 'type Properties/AssemblyInfo.cs'
shell: pwsh

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
Expand Down

0 comments on commit b170e6e

Please sign in to comment.