23
23
GH_TOKEN : ${{ github.token }}
24
24
SSH_AUTH_SOCK : /tmp/ssh_agent.sock
25
25
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
32
27
uses : actions/setup-python@v4
33
28
with :
34
29
python-version : " 3.12"
38
33
pip install --upgrade pip
39
34
pip install build twine hatch
40
35
41
- - name : upgrade version with hatch
42
- run : hatch version ${{ env.VERSION }}
43
-
44
36
- name : configure git with the bot credentials
45
37
run : |
46
38
mkdir -p ~/.ssh
@@ -51,13 +43,20 @@ jobs:
51
43
git config --global user.name "nextmv-bot"
52
44
git config --global user.email "tech+gh-nextmv-bot@nextmv.io"
53
45
46
+ git clone git@github.com:nextmv-io/nextmv-py.git
47
+
48
+ - name : upgrade version with hatch
49
+ run : hatch version ${{ env.VERSION }}
50
+ working-directory : ./nextmv-py
51
+
54
52
- name : commit new version
55
53
run : |
56
54
git add nextmv/__about__.py
57
55
git commit -m "Bump version to $VERSION"
58
56
git push
59
57
git tag $VERSION
60
58
git push origin $VERSION
59
+ working-directory : ./nextmv-py
61
60
62
61
- name : create release
63
62
run : |
@@ -66,26 +65,29 @@ jobs:
66
65
PRERELEASE_FLAG="--prerelease"
67
66
fi
68
67
69
- gh release create -R nextmv-io/nextmv-py $VERSION \
68
+ gh release create $VERSION \
70
69
--verify-tag \
71
70
--generate-notes \
72
71
--title $VERSION $PRERELEASE_FLAG
72
+ working-directory : ./nextmv-py
73
73
74
74
- name : build binary wheel and source tarball
75
75
env :
76
76
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
77
77
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
78
- run : |
79
- python -m build
78
+ run : python -m build
79
+ working-directory : ./nextmv-py
80
80
81
81
- name : publish to TestPyPI
82
82
env :
83
83
TWINE_USERNAME : ${{ secrets.TESTPYPI_USERNAME }}
84
84
TWINE_PASSWORD : ${{ secrets.TESTPYPI_PASSWORD }}
85
85
run : twine upload --repository testpypi dist/*
86
+ working-directory : ./nextmv-py
86
87
87
88
- name : publish to PyPI
88
89
env :
89
90
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
90
91
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
91
92
run : twine upload dist/*
93
+ working-directory : ./nextmv-py
0 commit comments