diff --git a/.github/workflows/main_valo-connect-integrate-demo-01.yml b/.github/workflows/main_valo-connect-integrate-demo-01.yml index 7a17fc1..5eb626d 100644 --- a/.github/workflows/main_valo-connect-integrate-demo-01.yml +++ b/.github/workflows/main_valo-connect-integrate-demo-01.yml @@ -32,6 +32,37 @@ jobs: dotnet build --configuration Release --output ./output popd + - name: "Create ZIP" + run: | + Get-ChildItem (Join-Path -Path $pwd -ChildPath output) | Compress-Archive -Destination .\output.zip + shell: pwsh + + - name: Create Draft Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: demo + release_name: demo + draft: true + prerelease: false + + - uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./output.zip + asset_name: output.zip + asset_content_type: application/zip + + - uses: eregon/publish-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ steps.create_release.outputs.id }} + - name: 'Run Azure Functions Action' uses: Azure/functions-action@v1 id: fa