Skip to content

Commit

Permalink
changed project name on nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
psarras committed May 4, 2021
1 parent 4655445 commit a281884
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ jobs:
$env:GITHUB_REF -match "refs/tags/v(?<content>.*)"
$NUMERICAL_VERSION = $matches["content"]
echo "::set-env name=NUMERICAL_VERSION::$NUMERICAL_VERSION"
$FULL_VERSION = "$env:NUMERICAL_VERSION.$env:GITHUB_RUN_ID"
$FULL_VERSION = "$NUMERICAL_VERSION.$env:GITHUB_RUN_ID"
echo "::set-env name=FULL_VERSION::$FULL_VERSION"
echo Release version = $RELEASE_VERSION
echo Numerical version = $NUMERICAL_VERSION
echo Full version = $FULL_VERSION
- name: Change Assembly version
env:
Expand Down Expand Up @@ -102,8 +105,7 @@ jobs:

- name: Build solution and generate NuGet package
run: |
$tag = $env:GITHUB_REF.Split("/")[-1].Split("v")[1]
nuget pack GH.MiscToolbox/GH.MiscToolbox/GH.MiscToolbox.csproj -Version $tag
nuget pack GH.MiscToolbox/GH.MiscToolbox/MiscToolbox.csproj -Version $NUMERICAL_VERSION
- name: Push generated package to GitHub registry
run: dotnet nuget push *.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
Expand Down

0 comments on commit a281884

Please sign in to comment.