Skip to content

Commit

Permalink
Fix deploy workflow - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Saporetti Junior committed Oct 9, 2023
1 parent f00ccc7 commit 06579a1
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
# Add closing brackets
JSON="$JSON]}"
echo "matrix=$( echo "$JSON" )" >> $GITHUB_OUTPUT
deploy:
needs: set-env-matrix
strategy:
Expand All @@ -107,35 +108,15 @@ jobs:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_MODULE: ${{ matrix.module }}
outputs:
modules: ${{ steps.deploy-info.outputs.modules }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ vars.JAVA_VERSION }}
- uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ vars.GRADLE_VERSION }}
- uses: actions/setup-python@v3
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install Python tools
run: gradle installBuildTools ${gradle_debug_params}
- name: Publish modules to PyPi
run: |
echo "Deploying module: (${{ matrix.module }}) to: ${{ inputs.pypi_env }} -> ${{ env.PYPI_REPOSITORY }}"
- name: Check published package
run: |
gradle "${{ matrix.module }}:pypiShow" ${gradle_debug_params}
- name: Deploy Information
id: deploy-info
run: |
echo "modules=$(echo ${{ matrix.module }})" >> $GITHUB_OUTPUT
outputs:
modules: ${{ steps.deploy-info.outputs.modules }}

update-version:
needs: deploy
runs-on: ubuntu-latest
Expand Down

0 comments on commit 06579a1

Please sign in to comment.