Skip to content

Commit

Permalink
pack_push
Browse files Browse the repository at this point in the history
  • Loading branch information
ltm0203 committed Mar 7, 2024
1 parent 11c983b commit 5263c8e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/Build and pack nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
with:
dotnet-version: 6.0.x
# 注释掉缓存
# - name: Cache NuGet packages
# uses: actions/cache@v3
# with:
# path: ~/.nuget/packages
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
# restore-keys: |
# ${{ runner.os }}-build-nuget-${{ env.CACHE_NAME }}-
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-build-nuget-${{ env.CACHE_NAME }}-
- name: Restore dependencies
run: dotnet restore
- name: Build with dotnet
Expand All @@ -41,6 +41,8 @@ jobs:
shell: pwsh
working-directory: ./nupkg
run: ./pack.ps1
env:
IS_PRODUCTION: false
- name: Push Nuget Package
working-directory: ./nupkg
run: ./pack_push.ps1
Expand Down

0 comments on commit 5263c8e

Please sign in to comment.