diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc76a4c2..81adfaa3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,17 @@ jobs: java-version: 11 cache: maven + - name: setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + cache: 'pip' + - name: get Python location + id: python-location + run: | + echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT + + - name: create ssh agent uses: webfactory/ssh-agent@v0.7.0 with: @@ -59,6 +70,8 @@ jobs: mvn release:perform -B -ff env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3" + EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3" - name: Get pom version of released artifact id: project diff --git a/README.md b/README.md index 0063a9f7..e3d72855 100644 --- a/README.md +++ b/README.md @@ -397,7 +397,7 @@ following keys for setting custom paths for the said executables. #### Python Support -By default Python support assumes that the package is installed using the pip/pip3 binary on the system PATH, of in the customized +By default, Python support assumes that the package is installed using the pip/pip3 binary on the system PATH, or of the customized Binaries passed to environment variables. If the package is not installed , then an error will be thrown. There is an experimental feature of installing the requirement.txt on a virtual env(only python3 or later is supported for this feature) - in this case,