-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (24 loc) · 901 Bytes
/
Copy pathrelease-nuget.yml
File metadata and controls
33 lines (24 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release Nuget
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Artifact
uses: bettermarks/action-artifact-download@0.3.0
with:
token: ${{secrets.GITHUB_TOKEN}}
artifact_name: NugetPreRelease
rename: nuget.zip
- name: Extract Nuget
uses: montudor/action-zip@v1
with:
args: unzip -qq nuget.zip -d packages
- name: Display Files
run: ls -R
- name: Nuget.org Push Packages
run: nuget push "packages/*.nupkg" -ApiKey ${{secrets.NUGET_KEY}} -Source "https://api.nuget.org/v3/index.json" -SkipDuplicate
- name: Github Push Packages
run: nuget push "packages/*.nupkg" -ApiKey ${{secrets.GITHUB_TOKEN}} -Source "https://nuget.pkg.github.com/PixelByProxy/index.json" -SkipDuplicate