Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Nuget publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirefel committed Apr 18, 2022
1 parent 5db4dc5 commit 87e2012
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
generate_release_notes: true
draft: true

# - name: Publish nuget package
# if: startsWith(github.ref, 'refs/tags/')
# run: .\publishnuget.ps1
# run: nuget push pkgbuild/*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json
- name: Publish nuget package
if: startsWith(github.ref, 'refs/tags/')
run: .\publishnuget.ps1 -ApiKey ${{ secrets.NUGET_API_KEY }}
2 changes: 1 addition & 1 deletion package/package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<version>0.1</version>
<version>0.1.1-alpha</version>
<id>OriDeModLoader</id>
<title>Ori DE Mod Loader</title>
<authors>Kirefel</authors>
Expand Down
4 changes: 4 additions & 0 deletions publishnuget.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
param([Parameter(Mandatory)] [string] $ApiKey)

cp build\OriDeModLoader.dll package\lib\net35\
cp build\Assembly-CSharp.dll package\lib\net35\
cp build\UnityEngine.dll package\lib\net35\
nuget pack package -OutputDirectory pkgbuild

nuget push pkgbuild\*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $ApiKey

0 comments on commit 87e2012

Please sign in to comment.