@@ -10,7 +10,7 @@ concurrency: publish_to_pypi
1010env :
1111 # Versions are also listed in PR.yml
1212 POETRY_VERSION : 1.8.2
13- PYTHON_VERSION : 3.9
13+ PYTHON_VERSION : 3.11. 9
1414
1515jobs :
1616 check_nims :
2222 # package version that doesn't exist yet.
2323 build :
2424 name : Build
25- runs-on : ubuntu-latest
25+ runs-on : ubuntu-latest
2626 steps :
2727 - name : Check out repo
2828 uses : actions/checkout@v4
@@ -48,12 +48,12 @@ jobs:
4848 run : |
4949 poetry version ${{ steps.vars.outputs.tag }}
5050 working-directory : ./packages/service
51-
51+
5252 - name : Update NIMG package version based on tag name.
5353 run : |
5454 poetry version ${{ steps.vars.outputs.tag }}
5555 working-directory : ./packages/generator
56-
56+
5757 - name : Update SDK package version based on tag name.
5858 run : |
5959 poetry version ${{ steps.vars.outputs.tag }}
@@ -71,13 +71,13 @@ jobs:
7171 git commit -m "Promote NIMS and NIMG package version" -a
7272 echo "version_changed=true" >> $GITHUB_OUTPUT
7373 fi
74-
74+
7575 - name : Push changes to the appropriate branch
7676 if : ${{ steps.commit.outputs.version_changed && (startsWith(github.event.release.target_commitish, 'main') || startsWith(github.event.release.target_commitish, 'releases/')) }}
7777 uses : CasperWA/push-protected@v2
7878 with :
7979 token : ${{ secrets.ADMIN_PAT }}
80- branch : ${{ github.event.release.target_commitish }}
80+ branch : ${{ github.event.release.target_commitish }}
8181 unprotect_reviews : true
8282
8383 # To Test the Publish use : poetry publish --build --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }} -r test-pypi
8686 run : |
8787 poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}
8888 working-directory : ./packages/service
89-
89+
9090 - name : Build NIMG Python package and publish to PyPI
9191 if : ${{ startsWith(github.event.release.target_commitish, 'main') || startsWith(github.event.release.target_commitish, 'releases/') }}
9292 run : |
@@ -101,7 +101,7 @@ jobs:
101101
102102 - name : Create archives of the examples
103103 env :
104- EXAMPLE_ARCHIVE : measurement-plugin-python-examples-${{ steps.vars.outputs.tag }}
104+ EXAMPLE_ARCHIVE : measurement-plugin-python-examples-${{ steps.vars.outputs.tag }}
105105 run : |
106106 # Use --prefix for the tarball but not the zip file. Windows zip tools often create a directory automatically.
107107 rm -rf dist
0 commit comments