Skip to content

update vsc settings #14

update vsc settings

update vsc settings #14

Workflow file for this run

name: Publish NuGet (on [build] commit)
on:
push:
branches:
- "**"
jobs:
publish:
if: contains(github.event.head_commit.message, '[build]')
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Restore
shell: pwsh
run: |
dotnet restore ./SwDevtools.slnx || dotnet restore ./SwDevtools.csproj
- name: Build (Release)
shell: pwsh
run: |
dotnet build ./SwDevtools.slnx -c Release --no-restore || `
dotnet build ./SwDevtools.csproj -c Release --no-restore
- name: Pack NuGet (Release)
shell: pwsh
run: |
dotnet pack ./SwDevtools.csproj `
-c Release `
-o artifacts `
--no-build
- name: Push package to NuGet.org
run: |
dotnet nuget push "artifacts/*.nupkg" `
--source https://api.nuget.org/v3/index.json `
--api-key ${{ secrets.NUGET_API_KEY }} `
--skip-duplicate