Skip to content

Commit

Permalink
Merge branch 'ci/dotnet-build-deploy' of https://github.com/Misha-133…
Browse files Browse the repository at this point in the history
…/Discord.Net into ci/dotnet-build-deploy
  • Loading branch information
Misha-133 committed Feb 13, 2024
2 parents b20de3b + d293122 commit 48b9e6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
dotnet-version: 8.0.x

- name: Is Tag Build
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/')
run: echo "IsTagBuild=true" >> $GITHUB_ENV

- name: Restore
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- uses: actions/checkout@v4

- name: Is Tag Build
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/')
run: echo "IsTagBuild=true" >> $GITHUB_ENV

- name: Update Suffix
Expand All @@ -123,8 +123,8 @@ jobs:
run: nuget pack "src/Discord.Net/Discord.Net.nuspec" -OutputDirectory $(ArtifactStagingDirectory) -Suffix=$Suffix

- name: Push Nightly
run: nuget push $(ArtifactStagingDirectory)/*.nupkg -Source ${{ vars.NIGHTLY_FEED }} -ApiKey ${{ secrets.NIGHTLY_API_KEY }}
run: nuget push $(ArtifactStagingDirectory)/*.nupkg -Source ${{ vars.NIGHTLY_FEED }} -ApiKey ${{ secrets.NIGHTLY_FEED_API_KEY }}

- name: Push Release
if: env.IsTagBuild == 'true'
run: nuget push $(ArtifactStagingDirectory)/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
#- name: Push Release
# if: env.IsTagBuild == 'true'
# run: nuget push $(ArtifactStagingDirectory)/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}

0 comments on commit 48b9e6b

Please sign in to comment.