fix: dask dependancie error #25
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 Python Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'release/*' | |
| permissions: | |
| contents: write | |
| id-token: write # ← CRÍTICO para Trusted Publishers | |
| jobs: | |
| release-test: | |
| if: startsWith(github.ref_name, 'release/') | |
| runs-on: ubuntu-latest | |
| environment: test-release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - run: pip install poetry python-semantic-release | |
| - name: Create version with semantic-release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: semantic-release version | |
| - name: Build package | |
| run: poetry build | |
| - name: Publish to TestPyPI (Trusted Publisher) | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ | |
| release-prod: | |
| if: github.ref_name == 'main' | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - run: pip install poetry python-semantic-release | |
| - name: Create version with semantic-release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: semantic-release version | |
| - name: Build package | |
| run: poetry build | |
| - name: Publish to PyPI (Trusted Publisher) | |
| uses: pypa/gh-action-pypi-publish@release/v1 |