From ad371dd5363dbfe7c389105660e91807f65d3444 Mon Sep 17 00:00:00 2001 From: Dan German Date: Thu, 11 Apr 2024 16:54:01 +0300 Subject: [PATCH] work --- .github/workflows/build-macos.yml | 5 +++-- .github/workflows/upload-to-s3.yml | 15 ++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 4844151..d238b09 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -58,11 +58,12 @@ jobs: - name: Upload built files uses: actions/upload-artifact@v4 with: - name: blocks_mac.dmg + name: blocks.dmg path: packaging/blocks.dmg upload-to-s3: needs: build uses: ./.github/workflows/upload-to-s3.yml secrets: inherit with: - file-name: blocks_mac.dmg \ No newline at end of file + file-name: blocks.dmg + final-file-name: blocks_mac.dmg \ No newline at end of file diff --git a/.github/workflows/upload-to-s3.yml b/.github/workflows/upload-to-s3.yml index 45e6607..9407df6 100644 --- a/.github/workflows/upload-to-s3.yml +++ b/.github/workflows/upload-to-s3.yml @@ -1,8 +1,11 @@ name: Upload to S3 -on: +on: workflow_call: - inputs: - file-name: + inputs: + file-name: + required: true + type: string + final-file-name: required: true type: string jobs: @@ -13,8 +16,10 @@ jobs: run: pwd - name: Download build-output artifact uses: actions/download-artifact@v4 - - name: ls - run: ls + - name: Rename file + run: mv ${{ file-name }} ${{ final-file-name }} + - name: Delete old file + run: rm -f ${{ file-name }} - name: zip uses: montudor/action-zip@v1 with: