Update img_util.py #477
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: Tag and publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tag: | |
| uses: AllenNeuralDynamics/aind-github-actions/.github/workflows/tag.yml@main | |
| secrets: | |
| SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }} | |
| publish: | |
| needs: tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Pull latest changes | |
| run: git pull origin main | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade setuptools wheel twine build | |
| python -m build | |
| twine check dist/* | |
| - name: Publish on PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.AIND_PYPI_TOKEN }} |