Skip to content

Commit 2d1cd21

Browse files
authored
Remove GitHub Packages publishing from build workflow (#765)
1 parent 5165669 commit 2d1cd21

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,6 @@ jobs:
5757
name: ${{matrix.os}}
5858
path: './artifacts'
5959

60-
push-github-packages:
61-
name: 'Push GitHub Packages'
62-
needs: build
63-
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
64-
environment:
65-
name: 'GitHub Packages'
66-
url: https://github.com/octokit/webhooks.net/packages
67-
permissions:
68-
packages: write
69-
runs-on: windows-latest
70-
steps:
71-
- name: 'Download artifact'
72-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
73-
with:
74-
name: 'windows-latest'
75-
- name: 'Dotnet NuGet Add Source'
76-
run: dotnet nuget add source https://nuget.pkg.github.com/octokit/index.json --name GitHub --username octokit --password ${{secrets.GITHUB_TOKEN}}
77-
shell: pwsh
78-
- name: 'Dotnet NuGet Push'
79-
run: dotnet nuget push .\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
80-
shell: pwsh
81-
8260
push-nuget:
8361
name: 'Push NuGet Packages'
8462
needs: build

0 commit comments

Comments
 (0)