Skip to content

Commit

Permalink
COE-1021: add zip source code step in release.yml (#91)
Browse files Browse the repository at this point in the history
*  COE-1021: Delete upload source code steps

* COE-1021: Remove $ which make latest release variable to be faulted

---------

Co-authored-by: Nam Nhat Pham <naph@softwareag.com>
  • Loading branch information
namnhatpham and Nam Nhat Pham committed May 31, 2023
1 parent a302dad commit c8ea019
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
release_body:
type: string
description: GitHub Release Message
default: "Release version ${GITHUB_RUN_NUMBER}"
default: "New Release"

environment:
type: environment
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
with:
draft: false
prerelease: false
release_name: v1.0.$${{ needs.call-build-workflow.outputs.release_version }}
release_name: v1.0.${{ needs.call-build-workflow.outputs.release_version }}
tag_name: v1.0.${{ needs.call-build-workflow.outputs.release_version }}
body: ${{ inputs.release_body }}
env:
Expand All @@ -59,14 +59,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # upload_url output is provided automatically by the GitHub API when the release is created
asset_path: 'repo/simulators/oee-simulators.zip'
asset_name: 'oee-simulators.zip'
asset_content_type: application/zip

- name: Upload source-code zip
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: 'source-code.zip'
asset_name: 'oee-simulators-src.zip'
asset_content_type: application/zip
asset_content_type: application/zip

0 comments on commit c8ea019

Please sign in to comment.