From c8ea019b3b88d9fbccb785afce9675c6c0c1426e Mon Sep 17 00:00:00 2001 From: Nam Nhat Pham Date: Wed, 31 May 2023 15:31:31 +0200 Subject: [PATCH] COE-1021: add zip source code step in release.yml (#91) * COE-1021: Delete upload source code steps * COE-1021: Remove $ which make latest release variable to be faulted --------- Co-authored-by: Nam Nhat Pham --- .github/workflows/release.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c0bb698..02de4b9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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: @@ -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 \ No newline at end of file