Browse Source

Update publish.yml

pull/107/head
Super 6 years ago
committed by GitHub
parent
commit
9fd9c8458f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .github/workflows/publish.yml

17
.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 }}
tag: ${{ steps.getVersion.outputs.first_match }}

Loading…
Cancel
Save