Skip to content

Commit

Permalink
update nuget pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Jun 26, 2024
1 parent 7b8e34f commit d71b41a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/shared_library_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
id: generate_build_number
run: |
echo build_num=$(date +'%Y.%m.%d').$(( $(date +'%H') + $(date +'%M') + $(date +'%S') + $(date +'%3N') )) >> "$GITHUB_ENV"
echo "build number is $build_num"
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand All @@ -28,11 +27,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build Data
run: dotnet build **/Data.csproj -c ${{env.buildConfiguration}} --no-restore
run: dotnet build **/Data.csproj -c ${{env.buildConfiguration}} /p:Version=${{ env.build_num }} --no-restore
- name: Build SLC
run: dotnet build **/SharedLibraryCore.csproj -c ${{env.buildConfiguration}} /p:Version=${{ env.build_num }} --no-restore
- name: Pack SLC
run: dotnet pack **/SharedLibraryCore.csproj -c ${{env.buildConfiguration}} --version-suffix ${{ env.build_num }}
run: dotnet pack **/SharedLibraryCore.csproj -c ${{env.buildConfiguration}} -p:PackageVersion=${{ env.build_num }}

- name: Publish nuget package artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit d71b41a

Please sign in to comment.