v2.5.8 Fix ldap server selection #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: publish pypi | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| pypi-publish: | |
| if: ${{ !github.event.release.prerelease && !github.event.release.draft }} | |
| name: upload release to PyPI | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Install ldap dependencies | |
| run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libldap2-dev libsasl2-dev | |
| - name: Checkout the release commit | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.release.tag_name }} | |
| fetch-depth: 0 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.13" | |
| - name: Build python package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install build | |
| python -m build | |
| - name: Publish package distributions to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |