mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
ci: update msbuild command and separate setup from push
This commit is contained in:
15
.github/workflows/docker.yml
vendored
15
.github/workflows/docker.yml
vendored
@@ -65,7 +65,7 @@ jobs:
|
|||||||
run: nuget restore .\$($Env:SOLUTION_FILE).sln
|
run: nuget restore .\$($Env:SOLUTION_FILE).sln
|
||||||
# Build the solutions in the docker image
|
# Build the solutions in the docker image
|
||||||
- name: Build Solution
|
- name: Build Solution
|
||||||
run: msbuild .\$($Env:SOLUTION_FILE).sln /p:Platform="Any CPU" /p:Configuration="Debug" /p:Version="${{ steps.setVersion.outputs.version }}"
|
run: msbuild .\$($Env:SOLUTION_FILE).sln /p:Platform="Any CPU" /p:Configuration="Debug" /p:Version="${{ steps.setVersion.outputs.version }}" -m
|
||||||
- name: Create tag for non-rc builds
|
- name: Create tag for non-rc builds
|
||||||
if: contains(steps.setVersion.outputs.version, 'alpha')
|
if: contains(steps.setVersion.outputs.version, 'alpha')
|
||||||
run: |
|
run: |
|
||||||
@@ -83,9 +83,12 @@ jobs:
|
|||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
||||||
tag: ${{ steps.setVersion.outputs.version }}
|
tag: ${{ steps.setVersion.outputs.version }}
|
||||||
- name: Publish to Nuget
|
- name: Setup Nuget
|
||||||
run: |
|
run: |
|
||||||
nuget sources add -name github -source https://nuget.pkg.github.com/pepperdash/index.json -username Pepperdash -password ${{ secrets.GITHUB_TOKEN }}
|
nuget sources add -name github -source https://nuget.pkg.github.com/pepperdash/index.json
|
||||||
nuget setApiKey ${{ secrets.NUGET_API_KEY }}
|
nuget setApiKey ${{ secrets.GITHUB_TOKEN }} -Source github
|
||||||
nuget push .\output\*.nupkg -Source github
|
nuget setApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json
|
||||||
nuget push .\output\*.nupkg -Source https://api.nuget.org/v3/index.json
|
- name: Publish to Nuget
|
||||||
|
run: nuget push .\output\*.nupkg -Source https://api.nuget.org/v3/index.json
|
||||||
|
- name: Public to Github Nuget
|
||||||
|
run: nuget push .\output\*.nupkg -Source github
|
||||||
Reference in New Issue
Block a user