Upload as artifact

This commit is contained in:
Dan Balasescu 2024-04-07 15:41:00 +09:00
parent ba77deb43d
commit cea0afa404
No known key found for this signature in database
1 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@ on:
- '*'
jobs:
deploy:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -19,9 +19,14 @@ jobs:
- name: Build
run: dotnet build SDL3-CS.sln -c Release
- name: Build Packages
- name: Pack
run: dotnet pack SDL3-CS/SDL3-CS.csproj -c Release /p:Version=$(git describe --exact-match --tags HEAD)
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SDL3-CS
path: SDL3-CS/bin/Release/ppy.*.nupkg
- name: Publish tagged release to nuget.org
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push SDL3-CS/bin/Release/ppy.*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}