Skip to content

Commit f23d6e8

Browse files
committed
Fix release.yml
1 parent 9b467dc commit f23d6e8

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ jobs:
105105
- name: Create package-specific pyproject.toml
106106
run: |
107107
# Work in a temporary directory
108-
mkdir -p build-${{ matrix.features.package_name }}
109-
cp -r . build-${{ matrix.features.package_name }}/
110-
cd build-${{ matrix.features.package_name }}
108+
TEMP_DIR="/tmp/build-${{ matrix.features.package_name }}"
109+
mkdir -p "${TEMP_DIR}"
110+
cp -r . "${TEMP_DIR}/"
111+
cd "${TEMP_DIR}"
111112
sed -i 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
112113
sed -i 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
113114
@@ -119,7 +120,7 @@ jobs:
119120
sccache: "false"
120121
manylinux: auto
121122
before-script-linux: "yum install openssl-devel devtoolset-10-libatomic-devel perl-IPC-Cmd -y"
122-
working-directory: build-${{ matrix.features.package_name }}
123+
working-directory: /tmp/build-${{ matrix.features.package_name }}
123124

124125
- name: Upload wheels
125126
uses: actions/upload-artifact@v4
@@ -168,9 +169,10 @@ jobs:
168169
- name: Create package-specific pyproject.toml
169170
run: |
170171
# Work in a temporary directory
171-
mkdir -p build-${{ matrix.features.package_name }}
172-
cp -r . build-${{ matrix.features.package_name }}/
173-
cd build-${{ matrix.features.package_name }}
172+
TEMP_DIR="/tmp/build-${{ matrix.features.package_name }}"
173+
mkdir -p "${TEMP_DIR}"
174+
cp -r . "${TEMP_DIR}/"
175+
cd "${TEMP_DIR}"
174176
sed -i 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
175177
sed -i 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
176178
@@ -182,7 +184,7 @@ jobs:
182184
sccache: "false"
183185
manylinux: auto
184186
before-script-linux: "apt-get update && apt-get install libssl-dev pkg-config -y"
185-
working-directory: build-${{ matrix.features.package_name }}
187+
working-directory: /tmp/build-${{ matrix.features.package_name }}
186188

187189
- name: Upload wheels
188190
uses: actions/upload-artifact@v4
@@ -232,9 +234,10 @@ jobs:
232234
- name: Create package-specific pyproject.toml
233235
run: |
234236
# Work in a temporary directory
235-
mkdir -p build-${{ matrix.features.package_name }}
236-
cp -r . build-${{ matrix.features.package_name }}/
237-
cd build-${{ matrix.features.package_name }}
237+
TEMP_DIR="/tmp/build-${{ matrix.features.package_name }}"
238+
mkdir -p "${TEMP_DIR}"
239+
cp -r . "${TEMP_DIR}/"
240+
cd "${TEMP_DIR}"
238241
sed -i 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
239242
sed -i 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
240243
@@ -244,7 +247,7 @@ jobs:
244247
target: ${{ matrix.platform.target }}
245248
args: --release --out ../dist --find-interpreter --features=${{ matrix.features.value }}
246249
sccache: "false"
247-
working-directory: build-${{ matrix.features.package_name }}
250+
working-directory: /tmp/build-${{ matrix.features.package_name }}
248251

249252
- name: Upload wheels
250253
uses: actions/upload-artifact@v4
@@ -295,9 +298,10 @@ jobs:
295298
- name: Create package-specific pyproject.toml
296299
run: |
297300
# Work in a temporary directory
298-
mkdir -p build-${{ matrix.features.package_name }}
299-
cp -r . build-${{ matrix.features.package_name }}/
300-
cd build-${{ matrix.features.package_name }}
301+
TEMP_DIR="/tmp/build-${{ matrix.features.package_name }}"
302+
mkdir -p "${TEMP_DIR}"
303+
cp -r . "${TEMP_DIR}/"
304+
cd "${TEMP_DIR}"
301305
sed -i 's/^name = "lindera-python"/name = "${{ matrix.features.package_name }}"/' pyproject.toml
302306
sed -i 's/^description = ".*"/description = "${{ matrix.features.package_description }}"/' pyproject.toml
303307
@@ -307,7 +311,7 @@ jobs:
307311
target: ${{ matrix.platform.target }}
308312
args: --release --out ../dist --find-interpreter --features=${{ matrix.features.value }}
309313
sccache: "false"
310-
working-directory: build-${{ matrix.features.package_name }}
314+
working-directory: /tmp/build-${{ matrix.features.package_name }}
311315

312316
- name: Upload wheels
313317
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)