From de9d7b620d3feb640471305c85dd0577c73c1a1f Mon Sep 17 00:00:00 2001 From: Xabi Losada Date: Thu, 13 Jun 2024 14:28:31 +0200 Subject: [PATCH] feat: new flow 3 --- .github/workflows/calimero_node_macos.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/calimero_node_macos.yml b/.github/workflows/calimero_node_macos.yml index 6958e9026..1847d1118 100644 --- a/.github/workflows/calimero_node_macos.yml +++ b/.github/workflows/calimero_node_macos.yml @@ -3,9 +3,9 @@ name: Build and Upload Binary on: push: branches: - - '**' + - '**' # Build on push to any branch pull_request: - types: [closed] + types: [closed] # Check for PRs closed (merged) into the main branch jobs: build: @@ -16,6 +16,7 @@ jobs: outputs: artifact_path: ${{ steps.compress.outputs.artifact_path }} + target: ${{ matrix.target }} steps: - name: Checkout code @@ -39,9 +40,10 @@ jobs: id: compress run: | tar -czf calimero-node_${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release calimero-node - echo "::set-output name=artifact_path::calimero-node_${{ matrix.target }}.tar.gz" + echo "artifact_path=calimero-node_${{ matrix.target }}.tar.gz" >> $GITHUB_ENV + echo "artifact_path=calimero-node_${{ matrix.target }}.tar.gz" >> $GITHUB_OUTPUT - branch_artifact: + upload: runs-on: ubuntu-latest needs: build if: ${{ github.ref != 'refs/heads/main' }} @@ -50,7 +52,7 @@ jobs: - name: Upload binary as artifact uses: actions/upload-artifact@v3 with: - name: calimero-node_${{ github.ref_name }}_${{ matrix.target }}.tar.gz + name: calimero-node_${{ github.ref_name }}_${{ needs.build.outputs.target }}.tar.gz path: ${{ needs.build.outputs.artifact_path }} retention-days: 2