Skip to content

Commit

Permalink
ci(calimero-node): run build and release workflow only when path matc…
Browse files Browse the repository at this point in the history
…hes (#395)
  • Loading branch information
fbozic authored Jun 19, 2024
1 parent bc58349 commit f90be0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/calimero_node_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: Build and Upload Binary for Linux
on:
push:
branches:
- '**'
- "**"
paths:
- Cargo.toml
- Cargo.lock
- "crates/**"
pull_request:
types: [closed]

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/calimero_node_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: Build and Upload Binary for MacOS
on:
push:
branches:
- '**'
- "**"
paths:
- Cargo.toml
- Cargo.lock
- "crates/**"
pull_request:
types: [closed]

Expand Down Expand Up @@ -74,7 +78,7 @@ jobs:
key: build-artifact-${{ matrix.target }}-${{ github.sha }}
restore-keys: |
build-artifact-${{ matrix.target }}
- name: Sanitize ref name
id: sanitize
run: |
Expand Down Expand Up @@ -166,4 +170,4 @@ jobs:
run: |
VERSION=${{ needs.build.outputs.version }}
TARGET=${{ matrix.target }}
gh release upload "v$VERSION" calimero-node_${TARGET}.tar.gz
gh release upload "v$VERSION" calimero-node_${TARGET}.tar.gz

0 comments on commit f90be0d

Please sign in to comment.