|
@@ -2,6 +2,11 @@ name: Build a dev version for all packages and release them
|
|
|
|
|
|
on:
|
|
|
workflow_dispatch:
|
|
|
+ inputs:
|
|
|
+ publish_on_pypi:
|
|
|
+ description: "Should the packages be published on Pypi?"
|
|
|
+ default: "false"
|
|
|
+ required: true
|
|
|
|
|
|
jobs:
|
|
|
fetch-versions:
|
|
@@ -83,7 +88,8 @@ jobs:
|
|
|
${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
|
${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
|
${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
|
- ${{needs.fetch-versions.outputs.templates_VERSION}}
|
|
|
+ ${{needs.fetch-versions.outputs.templates_VERSION}} \
|
|
|
+ ${{ github.event.inputs.publish_on_pypi }}
|
|
|
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
@@ -106,6 +112,14 @@ jobs:
|
|
|
run: |
|
|
|
pip install ${{ steps.set-variables.outputs.tar_path }}
|
|
|
|
|
|
+ - name: Publish to PyPI
|
|
|
+ if: ${{ github.event.inputs.publish_on_pypi == 'true' }}
|
|
|
+ working-directory: ${{ steps.set-variables.outputs.package_dir }}
|
|
|
+ uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
+ with:
|
|
|
+ user: __token__
|
|
|
+ password: ${{ secrets[format('PYPI_API_TOKEN_{0}', ${{ matrix.package }} )] }}
|
|
|
+
|
|
|
build-and-release-taipy-dev:
|
|
|
runs-on: ubuntu-latest
|
|
|
needs: [ build-and-release-taipy-dev-packages, fetch-versions ]
|
|
@@ -126,6 +140,16 @@ jobs:
|
|
|
echo "release_name=${{needs.fetch-versions.outputs.VERSION}}" >> $GITHUB_OUTPUT
|
|
|
echo "tar_path=./dist/${{ github.event.repository.name }}-${{needs.fetch-versions.outputs.VERSION}}.tar.gz" >> $GITHUB_OUTPUT
|
|
|
|
|
|
+ - name: Update setup.requirements.txt
|
|
|
+ run: |
|
|
|
+ python tools/release/update_setup_requirements.py taipy \
|
|
|
+ ${{needs.fetch-versions.outputs.config_VERSION}} \
|
|
|
+ ${{needs.fetch-versions.outputs.core_VERSION}} \
|
|
|
+ ${{needs.fetch-versions.outputs.gui_VERSION}} \
|
|
|
+ ${{needs.fetch-versions.outputs.rest_VERSION}} \
|
|
|
+ ${{needs.fetch-versions.outputs.templates_VERSION}} \
|
|
|
+ ${{ github.event.inputs.publish_on_pypi }}
|
|
|
+
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
python -m pip install --upgrade pip
|
|
@@ -148,6 +172,13 @@ jobs:
|
|
|
run: |
|
|
|
python tools/validate_taipy_install.py
|
|
|
|
|
|
+ - name: Publish to PyPI
|
|
|
+ if: ${{ github.event.inputs.publish_on_pypi == 'true' }}
|
|
|
+ uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
+ with:
|
|
|
+ user: __token__
|
|
|
+ password: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
+
|
|
|
- name: Download packages
|
|
|
run: |
|
|
|
gh release download ${{ needs.fetch-versions.outputs.config_VERSION }}-config --skip-existing --dir dist
|