Skip to content

Commit e634e32

Browse files
committed
Fix sed command for macos
1 parent f23d6e8 commit e634e32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ jobs:
302302
mkdir -p "${TEMP_DIR}"
303303
cp -r . "${TEMP_DIR}/"
304304
cd "${TEMP_DIR}"
305-
sed -i 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
306-
sed -i 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
305+
# macOS uses BSD sed which requires empty string for -i
306+
sed -i '' 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
307+
sed -i '' 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
307308
308309
- name: Build wheels
309310
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)