diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3cfc178..11b6e6b1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,13 +9,13 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: warrenbuckley/Setup-Nuget@v1 + - uses: NuGet/setup-nuget@v1.0.5 - - name: read common.props + - name: read project file id: commonProps uses: juliangruber/read-file-action@v1 with: - path: ./common.props + path: ./EasyAbp.Abp.BlobStoring.TencentCloud/EasyAbp.Abp.BlobStoring.TencentCloud.csproj - name: get version id: getVersion @@ -41,9 +41,12 @@ jobs: dir -name - name: dotnet nuget push to GitHub - run: | - dotnet nuget add source https://nuget.pkg.github.com/EasyAbp/index.json -n github -u EasyAbp -p ${{secrets.GITHUB_TOKEN}} - dotnet nuget push dest\*.nupkg -s "github" --skip-duplicate + uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 + with: + nupkg-path: 'dest\*.nupkg' + repo-owner: 'EasyAbp' + gh-user: 'EasyAbp' + token: ${{ secrets.GITHUB_TOKEN }} - name: dotnet nuget push to NuGet run: dotnet nuget push dest\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate @@ -61,4 +64,4 @@ jobs: uses: tvdias/github-tagger@v0.0.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ steps.getVersion.outputs.first_match }} \ No newline at end of file + tag: ${{ steps.getVersion.outputs.first_match }}