Skip to content

Commit 4838df7

Browse files
fix: replace underscore in package name after build
1 parent 04d6f00 commit 4838df7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build-and-release-single-package.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -72,27 +72,27 @@ jobs:
7272
echo "package_version=${{needs.fetch-versions.outputs.config_VERSION}}" >> $GITHUB_OUTPUT
7373
echo "package_dir=./taipy/config" >> $GITHUB_OUTPUT
7474
echo "release_name=${{needs.fetch-versions.outputs.config_VERSION}}-config" >> $GITHUB_OUTPUT
75-
echo "tar_path=./dist/${{ github.event.repository.name }}_config-${{needs.fetch-versions.outputs.config_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
75+
echo "tar_path=./dist/${{ github.event.repository.name }}-config-${{needs.fetch-versions.outputs.config_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
7676
elif [ "${{ github.event.inputs.target_package }}" == "core" ]; then
7777
echo "package_version=${{needs.fetch-versions.outputs.core_VERSION}}" >> $GITHUB_OUTPUT
7878
echo "package_dir=./taipy/core" >> $GITHUB_OUTPUT
7979
echo "release_name=${{needs.fetch-versions.outputs.core_VERSION}}-core" >> $GITHUB_OUTPUT
80-
echo "tar_path=./dist/${{ github.event.repository.name }}_core-${{needs.fetch-versions.outputs.core_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
80+
echo "tar_path=./dist/${{ github.event.repository.name }}-core-${{needs.fetch-versions.outputs.core_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
8181
elif [ "${{ github.event.inputs.target_package }}" == "gui" ]; then
8282
echo "package_version=${{needs.fetch-versions.outputs.gui_VERSION}}" >> $GITHUB_OUTPUT
8383
echo "package_dir=./taipy/gui" >> $GITHUB_OUTPUT
8484
echo "release_name=${{needs.fetch-versions.outputs.gui_VERSION}}-gui" >> $GITHUB_OUTPUT
85-
echo "tar_path=./dist/${{ github.event.repository.name }}_gui-${{needs.fetch-versions.outputs.gui_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
85+
echo "tar_path=./dist/${{ github.event.repository.name }}-gui-${{needs.fetch-versions.outputs.gui_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
8686
elif [ "${{ github.event.inputs.target_package }}" == "rest" ]; then
8787
echo "package_version=${{needs.fetch-versions.outputs.rest_VERSION}}" >> $GITHUB_OUTPUT
8888
echo "package_dir=./taipy/rest" >> $GITHUB_OUTPUT
8989
echo "release_name=${{needs.fetch-versions.outputs.rest_VERSION}}-rest" >> $GITHUB_OUTPUT
90-
echo "tar_path=./dist/${{ github.event.repository.name }}_rest-${{needs.fetch-versions.outputs.rest_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
90+
echo "tar_path=./dist/${{ github.event.repository.name }}-rest-${{needs.fetch-versions.outputs.rest_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
9191
elif [ "${{ github.event.inputs.target_package }}" == "templates" ]; then
9292
echo "package_version=${{needs.fetch-versions.outputs.templates_VERSION}}" >> $GITHUB_OUTPUT
9393
echo "package_dir=./taipy/templates" >> $GITHUB_OUTPUT
9494
echo "release_name=${{needs.fetch-versions.outputs.templates_VERSION}}-templates" >> $GITHUB_OUTPUT
95-
echo "tar_path=./dist/${{ github.event.repository.name }}_templates-${{needs.fetch-versions.outputs.templates_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
95+
echo "tar_path=./dist/${{ github.event.repository.name }}-templates-${{needs.fetch-versions.outputs.templates_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
9696
fi
9797
shell: bash
9898

@@ -152,6 +152,7 @@ jobs:
152152
working-directory: ${{ steps.set-variables.outputs.package_dir }}
153153
run: |
154154
python setup.py build_py && python -m build
155+
for file in /dist/*; do mv "$file" "${file//_/-}"; done
155156
156157
- name: Create tag and release
157158
working-directory: ${{ steps.set-variables.outputs.package_dir }}

0 commit comments

Comments
 (0)