Skip to content

Commit

Permalink
Created an octopus package and uploaded the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 5, 2021
1 parent 1b3d558 commit 5355825
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/cloudservice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,29 @@ jobs:
run: mkdir cspack; Expand-Archive -LiteralPath cspack.zip -DestinationPath cspack
- name: CSPack
shell: powershell
run: .\cspack\cspack.exe ServiceDefinition.csdef "/role:WebRole1;RandomQuotes\obj\Production\Package\PackageTmp" "/rolePropertiesFile:WebRole1;.\AzureRoleProperties.txt" "/sitePhysicalDirectories:WebRole1;Web;RandomQuotes\obj\Production\Package\PackageTmp" "/out:RandomQuotes-Azure-Release.cspkg"
run: .\cspack\cspack.exe ServiceDefinition.csdef "/role:WebRole1;RandomQuotes\obj\Production\Package\PackageTmp" "/rolePropertiesFile:WebRole1;.\AzureRoleProperties.txt" "/sitePhysicalDirectories:WebRole1;Web;RandomQuotes\obj\Production\Package\PackageTmp" "/out:RandomQuotes-Azure-Release.cspkg"
- name: Create Octopus Package
shell: powershell
run: Get-ChildItem -Path RandomQuotes-Azure-Release.cspkg, ServiceConfiguration.Cloud.cscfg | Compress-Archive -DestinationPath RandomQuotes-Azure-Release.1.0.${{ github.run_number }}.zip

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 0.0.${{ github.run_number }}
release_name: Release 0.0.${{ github.run_number }}
draft: false
prerelease: false

- name: Upload Zip Release Asset
id: upload-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: .
asset_name: RandomQuotes-Azure-Release.1.0.${{ github.run_number }}.zip
asset_content_type: application/zip

0 comments on commit 5355825

Please sign in to comment.