Skip to content

Commit 715f309

Browse files
committed
Fix matrix value reference in release action
1 parent 69981fd commit 715f309

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Diff for: .github/workflows/publish-package.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
package: ${{ fromJson(needs.bump.outputs.packages) }}
6868
defaults:
6969
run:
70-
working-directory: ${{ package.name }}
70+
working-directory: ${{ matrix.package.name }}
7171

7272
runs-on: ubuntu-latest
7373

@@ -84,19 +84,34 @@ jobs:
8484
python -m pip install --upgrade pip
8585
pip install build
8686
87+
<<<<<<< Updated upstream
8788
- name: Bump version.py
8889
run: |
8990
export module=$(sed 's/^.*\///' <<< ${{ package.name }} | tr '-' '/')
9091
sed -i "s/__version__.*/__version__ = \"${{ package.version }}\"/" $module/version.py
92+
=======
93+
- name: Bump version.py
94+
run: |
95+
export module=$(sed 's/^.*\///' <<< ${{ matrix.package.name }} | tr '-' '/')
96+
sed -i "s/__version__.*/__version__ = \"${{ matrix.package.version }}\"/" $module/version.py
97+
>>>>>>> Stashed changes
9198

9299
- name: Build package
93100
run: python -m build
94101

102+
<<<<<<< Updated upstream
95103
- name: Store the distribution packages
96104
uses: actions/upload-artifact@v3
97105
with:
98106
name: python-package-distributions
99107
path: ${{ package.name }}/dist/
108+
=======
109+
- name: Store the distribution packages
110+
uses: actions/upload-artifact@v3
111+
with:
112+
name: python-package-distributions
113+
path: ${{ matrix.package.name }}/dist/
114+
>>>>>>> Stashed changes
100115

101116
publish:
102117

0 commit comments

Comments
 (0)