From 1a9e45c64e1b675b7aa75447b9b6bec70fbd5a15 Mon Sep 17 00:00:00 2001 From: nanikwame <71988569+nanikwame@users.noreply.github.com> Date: Fri, 16 Sep 2022 08:26:16 -0400 Subject: [PATCH] Update deploy-pipeline.yaml --- .github/workflows/deploy-pipeline.yaml | 32 +++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pipeline.yaml b/.github/workflows/deploy-pipeline.yaml index 678300fc6..3d079877c 100644 --- a/.github/workflows/deploy-pipeline.yaml +++ b/.github/workflows/deploy-pipeline.yaml @@ -43,4 +43,34 @@ jobs: uses: actions/upload-artifact@v2 with: name: zipped-bundle - path: ${{ github.sha }}.zip \ No newline at end of file + path: ${{ github.sha }}.zip + + publish: + runs-on: ubuntu-latest + needs: build + steps: + - name: Create release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.github_token }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.run_number }} + release_name: Release ${{ github.run_number }} + body: New release for ${{ github.sha }}. Release notes can be found in the docs. + draft: false + prerelease: false + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: zipped-bundle + - name: 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: ./${{ github.sha }}.zip + asset_name: source_code_with_libraries.zip + asset_content_type: application/zip +