mirror of
https://github.com/Ryujinx/Ryujinx.Graphics.Nvdec.Dependencies.git
synced 2024-12-22 18:45:29 +00:00
Add auto nuget publish
This commit is contained in:
parent
57aecde178
commit
676e0da22f
21
.github/workflows/build.yml
vendored
Normal file
21
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Build and Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: nuget/setup-nuget@v1
|
||||
with:
|
||||
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
|
||||
nuget-version: '5.x'
|
||||
- name: "Publish on Nuget"
|
||||
run: |
|
||||
nuget pack Ryujinx.Graphics.Nvdec.Dependencies.nuspec -Suffix "build${{ github.run_number }}"
|
||||
$file_to_publish = Get-ChildItem -Path $dir -Filter *.nupkg | Select -First 1
|
||||
echo $file_to_publish
|
||||
nuget push $file_to_publish -Source https://api.nuget.org/v3/index.json
|
Loading…
Reference in a new issue