Skip to content

Commit

Permalink
Added octopack build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 5, 2021
1 parent 0e38811 commit 21b4cb4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/cloudservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
shell: powershell
run: Get-ChildItem -Path RandomQuotes-Azure-Release-ASM.cspkg, ServiceConfiguration.Cloud.cscfg, ServiceDefinition.csdef | Compress-Archive -DestinationPath RandomQuotes-Azure-Release-ASM.1.0.${{ github.run_number }}.zip

- name: MSBuild OctoPack
shell: powershell
run: msbuild.exe RandomQuotes.sln /p:Configuration=Release "/p:Platform=Any CPU" /p:OctoPackEnforceAddingFiles=true /p:RunOctoPack=true

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -67,4 +71,15 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .\RandomQuotes-Azure-Release-ASM.1.0.${{ github.run_number }}.zip
asset_name: RandomQuotes-Azure-Release-ASM.1.0.${{ github.run_number }}.zip
asset_content_type: application/zip
asset_content_type: application/zip

- name: Upload Octopacked Release Asset
id: upload-octopack-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .\RandomQuotes\obj\octopacked\RandomQuotes.1.0.0.0.nupkg
asset_name: RandomQuotes.1.0.0.0.nupkg
asset_content_type: application/zip

0 comments on commit 21b4cb4

Please sign in to comment.