2323 GH_TOKEN : ${{ github.token }}
2424 SSH_AUTH_SOCK : /tmp/ssh_agent.sock
2525 steps :
26- - name : git clone develop
27- uses : actions/checkout@v4
28- with :
29- ref : develop
30-
31- - name : Set up Python
26+ - name : set up Python
3227 uses : actions/setup-python@v4
3328 with :
3429 python-version : " 3.12"
@@ -38,26 +33,35 @@ jobs:
3833 pip install --upgrade pip
3934 pip install build twine hatch
4035
41- - name : upgrade version with hatch
42- run : hatch version ${{ env.VERSION }}
43-
4436 - name : configure git with the bot credentials
4537 run : |
4638 mkdir -p ~/.ssh
4739 ssh-keyscan github.com >> ~/.ssh/known_hosts
4840 ssh-agent -a $SSH_AUTH_SOCK > /dev/null
4941 ssh-add - <<< "${{ secrets.NEXTMVBOT_SSH_KEY }}"
5042
43+ echo "${{ secrets.NEXTMVBOT_SIGNING_KEY }}" > ~/.ssh/signing.key
44+ chmod 600 ~/.ssh/signing.key
45+
5146 git config --global user.name "nextmv-bot"
5247 git config --global user.email "[email protected] " 48+ git config --global gpg.format ssh
49+ git config --global user.signingkey ~/.ssh/signing.key
50+
51+ git clone [email protected] :nextmv-io/nextplot.git 52+
53+ - name : upgrade version with hatch
54+ run : hatch version ${{ env.VERSION }}
55+ working-directory : ./nextplot
5356
5457 - name : commit new version
5558 run : |
5659 git add nextplot/__about__.py
57- git commit -m "Bump version to $VERSION"
60+ git commit -S - m "Bump version to $VERSION"
5861 git push
5962 git tag $VERSION
6063 git push origin $VERSION
64+ working-directory : ./nextplot
6165
6266 - name : create release
6367 run : |
@@ -66,23 +70,26 @@ jobs:
6670 PRERELEASE_FLAG="--prerelease"
6771 fi
6872
69- gh release create -R nextmv-io/nextplot $VERSION \
73+ gh release create $VERSION \
7074 --verify-tag \
7175 --generate-notes \
7276 --title $VERSION $PRERELEASE_FLAG
77+ working-directory : ./nextplot
7378
7479 - name : build binary wheel and source tarball
75- run : |
76- python -m build
80+ run : python -m build
81+ working-directory : ./nextplot
7782
7883 - name : publish to TestPyPI
7984 env :
8085 TWINE_USERNAME : ${{ secrets.TESTPYPI_USERNAME }}
8186 TWINE_PASSWORD : ${{ secrets.TESTPYPI_PASSWORD }}
8287 run : twine upload --repository testpypi dist/*
88+ working-directory : ./nextplot
8389
8490 - name : publish to PyPI
8591 env :
8692 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
8793 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
8894 run : twine upload dist/*
95+ working-directory : ./nextplot
0 commit comments