Skip to content

Commit

Permalink
Publish for versin tags
Browse files Browse the repository at this point in the history
  • Loading branch information
maximn committed Oct 9, 2024
1 parent da78c8a commit 6f598ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
with:
dotnet-version: '7.0.x'

- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Update version in project file
run: |
sed -i 's/<Version>0.0.0<\/Version>/<Version>${{ steps.get_version.outputs.VERSION }}<\/Version>/' GoogleMapsApi/GoogleMapsApi.csproj
- name: Restore dependencies
run: dotnet restore

Expand Down
2 changes: 1 addition & 1 deletion GoogleMapsApi/GoogleMapsApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;netstandard2.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Version>1.2.5</Version>
<Version>0.0.0</Version>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AssemblyName>GoogleMapsApi</AssemblyName>
Expand Down

0 comments on commit 6f598ec

Please sign in to comment.