Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Condensed multi-line commands
  • Loading branch information
jstedfast authored Oct 16, 2024
1 parent ef818aa commit 25467b8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ jobs:
id: create_nuget_package
shell: pwsh
run: |
nuget pack nuget/MailKit.nuspec `
-Version "$env:LATEST_VERSION.$env:GITHUB_RUN_NUMBER"
nuget pack nuget/MailKit.nuspec -Version "$env:LATEST_VERSION.$env:GITHUB_RUN_NUMBER"
env:
LATEST_VERSION: ${{ steps.semantic_version.outputs.version_num }}

Expand All @@ -138,9 +137,7 @@ jobs:
id: push_nuget_package
shell: pwsh
run: |
nuget push $env:NUGET_PKG_PATH `
-ApiKey $env:MYGET_API_KEY `
-Source https://www.myget.org/F/mimekit/api/v3/index.json
nuget push $env:NUGET_PKG_PATH -ApiKey $env:MYGET_API_KEY -Source https://www.myget.org/F/mimekit/api/v3/index.json
env:
NUGET_PKG_PATH: MailKit.${{ steps.semantic_version.outputs.version_num }}.${{ github.run_number }}.nupkg
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
Expand Down

0 comments on commit 25467b8

Please sign in to comment.