Skip to content

Commit

Permalink
feat: new flow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xilosada committed Jun 13, 2024
1 parent 74e9152 commit de9d7b6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/calimero_node_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -16,6 +16,7 @@ jobs:

outputs:
artifact_path: ${{ steps.compress.outputs.artifact_path }}
target: ${{ matrix.target }}

steps:
- name: Checkout code
Expand All @@ -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' }}
Expand All @@ -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

Expand Down

0 comments on commit de9d7b6

Please sign in to comment.