Merge pull request #423 from AllenNeuralDynamics/release-v2.1.3 #54
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 main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| tag: | |
| name: Tag | |
| uses: AllenNeuralDynamics/.github/.github/workflows/release-tag.yml@main | |
| secrets: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| publish-image: | |
| needs: tag | |
| uses: AllenNeuralDynamics/.github/.github/workflows/release-publish-docker-image.yml@main | |
| with: | |
| docker-tag: ${{ needs.tag.outputs.new_version }} | |
| secrets: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| publish-pypi: | |
| needs: tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - 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.12 | |
| with: | |
| password: ${{ secrets.AIND_PYPI_TOKEN }} |