Skip to content

Commit

Permalink
Add GitHub Actions create release step
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Powney committed Aug 29, 2021
1 parent fee97aa commit 1b37cfb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main_valo-connect-integrate-demo-01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit 1b37cfb

Please sign in to comment.