Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit c2d755c

Browse files
committed
Revert the Push CI action changed by "Target net8.0 & net48"
1 parent 98ff606 commit c2d755c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
workflow_dispatch:
44
permissions:
55
contents: write
6+
packages: write
67
jobs:
78
calculate-version:
89
name: Calculate Version
@@ -108,9 +109,9 @@ jobs:
108109
with:
109110
path: artifacts
110111
merge-multiple: true
111-
- name: Push
112-
run: dotnet nuget push artifacts\*\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
113112
- name: Release
114113
run: gh release create v${{ env.SemVer }} @((Get-Item artifacts\*.zip) + (Get-Item artifacts\*\*.*nupkg)) --generate-notes --target ${{ env.Sha }} ${{ env.PreReleaseTag != '' && '--prerelease' || '' }}
115114
env:
116-
GH_TOKEN: ${{ github.token }}
115+
GH_TOKEN: ${{ github.token }}
116+
- name: Push
117+
run: dotnet nuget push @(Get-Item artifacts\*\*.nupkg) --api-key ${{ secrets.GITHUB_TOKEN }} --source ${{ format('https://nuget.pkg.github.com/{0}/index.json', github.repository_owner) }}

0 commit comments

Comments
 (0)