icon update #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish to NuGet | |
on: | |
push: | |
branches: | |
- release/v* | |
- develop | |
pull_request: | |
branches: | |
- release/v* | |
- develop | |
jobs: | |
build-and-publish: | |
if: github.repository == 'Sichii/Chaos-Server' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.x | |
- name: Pack | |
run: dotnet pack --configuration Release -o nupkgs | |
- name: Publish to NuGet | |
run: | | |
dotnet nuget push "nupkgs/**/*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate | |
dotnet nuget push "nupkgs/**/*.snupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate |