Skip to content

Commit

Permalink
Update nuget-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides committed Nov 26, 2024
1 parent 8980ca2 commit 2f00ebe
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/nuget-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ name: Nuget

on:
push:
branches: [ "1.*" ]
branches: ["1.*"]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]

tags: ["v*.*.*"]
# don't publish when we change workflow files
paths:
- "**/*.cs"
- "**/*.csproj"
paths-ignore:
- "./github/workflows/*.yml"

env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
Expand Down Expand Up @@ -34,4 +40,4 @@ jobs:
cd Obsidian.API
dotnet build -c Release -p:Version=1.0.0-${{ github.run_number }}-${{ github.sha }}
dotnet pack -c Release -o build -p:Version=1.0.0-nightly-${{ github.run_number }}
dotnet nuget push "build/*" --skip-duplicate -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push "build/*" --skip-duplicate -k ${{ secrets.NUGET_ORG_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 2f00ebe

Please sign in to comment.