|
@@ -25,7 +25,7 @@ jobs:
|
|
fetch-versions:
|
|
fetch-versions:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
outputs:
|
|
- config_VERSION: ${{ steps.version-setup.outputs.config_VERSION }}
|
|
|
|
|
|
+ common_VERSION: ${{ steps.version-setup.outputs.common_VERSION }}
|
|
core_VERSION: ${{ steps.version-setup.outputs.core_VERSION }}
|
|
core_VERSION: ${{ steps.version-setup.outputs.core_VERSION }}
|
|
gui_VERSION: ${{ steps.version-setup.outputs.gui_VERSION }}
|
|
gui_VERSION: ${{ steps.version-setup.outputs.gui_VERSION }}
|
|
rest_VERSION: ${{ steps.version-setup.outputs.rest_VERSION }}
|
|
rest_VERSION: ${{ steps.version-setup.outputs.rest_VERSION }}
|
|
@@ -50,7 +50,7 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
strategy:
|
|
matrix:
|
|
matrix:
|
|
- package: [config, core, gui, rest, templates]
|
|
|
|
|
|
+ package: [common, core, gui, rest, templates]
|
|
max-parallel: 1
|
|
max-parallel: 1
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
@@ -71,11 +71,11 @@ jobs:
|
|
- name: Set Build Variables
|
|
- name: Set Build Variables
|
|
id: set-variables
|
|
id: set-variables
|
|
run: |
|
|
run: |
|
|
- if [ "${{ matrix.package }}" == "config" ]; then
|
|
|
|
- echo "package_version=${{needs.fetch-versions.outputs.config_VERSION}}" >> $GITHUB_OUTPUT
|
|
|
|
- echo "package_dir=./taipy/config" >> $GITHUB_OUTPUT
|
|
|
|
- echo "release_name=${{needs.fetch-versions.outputs.config_VERSION}}-config" >> $GITHUB_OUTPUT
|
|
|
|
- echo "tar_path=./dist/${{ github.event.repository.name }}-config-${{needs.fetch-versions.outputs.config_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
|
|
|
|
|
|
+ if [ "${{ matrix.package }}" == "common" ]; then
|
|
|
|
+ echo "package_version=${{needs.fetch-versions.outputs.common_VERSION}}" >> $GITHUB_OUTPUT
|
|
|
|
+ echo "package_dir=./taipy/common" >> $GITHUB_OUTPUT
|
|
|
|
+ echo "release_name=${{needs.fetch-versions.outputs.common_VERSION}}-common" >> $GITHUB_OUTPUT
|
|
|
|
+ echo "tar_path=./dist/${{ github.event.repository.name }}-common-${{needs.fetch-versions.outputs.common_VERSION}}.tar.gz" >> $GITHUB_OUTPUT
|
|
elif [ "${{ matrix.package }}" == "core" ]; then
|
|
elif [ "${{ matrix.package }}" == "core" ]; then
|
|
echo "package_version=${{needs.fetch-versions.outputs.core_VERSION}}" >> $GITHUB_OUTPUT
|
|
echo "package_version=${{needs.fetch-versions.outputs.core_VERSION}}" >> $GITHUB_OUTPUT
|
|
echo "package_dir=./taipy/core" >> $GITHUB_OUTPUT
|
|
echo "package_dir=./taipy/core" >> $GITHUB_OUTPUT
|
|
@@ -102,7 +102,7 @@ jobs:
|
|
- name: Update setup.requirements.txt
|
|
- name: Update setup.requirements.txt
|
|
run: |
|
|
run: |
|
|
python tools/release/update_setup_requirements.py taipy-${{ matrix.package }} \
|
|
python tools/release/update_setup_requirements.py taipy-${{ matrix.package }} \
|
|
- ${{needs.fetch-versions.outputs.config_VERSION}} \
|
|
|
|
|
|
+ ${{needs.fetch-versions.outputs.common_VERSION}} \
|
|
${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
@@ -142,15 +142,6 @@ jobs:
|
|
run: |
|
|
run: |
|
|
python tools/release/build_package_structure.py ${{ matrix.package }}
|
|
python tools/release/build_package_structure.py ${{ matrix.package }}
|
|
|
|
|
|
- - name: Copy Taipy Logger
|
|
|
|
- if: matrix.package == 'config'
|
|
|
|
- run: |
|
|
|
|
- cp -r taipy/logger/. ${{ steps.set-variables.outputs.package_dir }}/taipy/logger
|
|
|
|
-
|
|
|
|
- - name: Copy _cli folder
|
|
|
|
- run: |
|
|
|
|
- cp -r taipy/_cli/. ${{ steps.set-variables.outputs.package_dir }}/taipy/_cli
|
|
|
|
-
|
|
|
|
- name: Build package
|
|
- name: Build package
|
|
working-directory: ${{ steps.set-variables.outputs.package_dir }}
|
|
working-directory: ${{ steps.set-variables.outputs.package_dir }}
|
|
run: |
|
|
run: |
|
|
@@ -192,7 +183,7 @@ jobs:
|
|
- name: Update setup.requirements.txt
|
|
- name: Update setup.requirements.txt
|
|
run: |
|
|
run: |
|
|
python tools/release/update_setup_requirements.py taipy \
|
|
python tools/release/update_setup_requirements.py taipy \
|
|
- ${{needs.fetch-versions.outputs.config_VERSION}} \
|
|
|
|
|
|
+ ${{needs.fetch-versions.outputs.common_VERSION}} \
|
|
${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
@@ -233,7 +224,7 @@ jobs:
|
|
|
|
|
|
- name: Download packages
|
|
- name: Download packages
|
|
run: |
|
|
run: |
|
|
- gh release download ${{ needs.fetch-versions.outputs.config_VERSION }}-config --skip-existing --dir dist
|
|
|
|
|
|
+ gh release download ${{ needs.fetch-versions.outputs.common_VERSION }}-common --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.core_VERSION }}-core --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.core_VERSION }}-core --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.gui_VERSION }}-gui --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.gui_VERSION }}-gui --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.rest_VERSION }}-rest --skip-existing --dir dist
|
|
gh release download ${{ needs.fetch-versions.outputs.rest_VERSION }}-rest --skip-existing --dir dist
|