@@ -12,26 +12,36 @@ jobs:
1212
1313 steps :
1414 - name : Checkout
15- uses : actions/checkout@v2
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Python 3.9
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.9"
21+
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip3 install poetry
1626
1727 - name : Bump version
1828 run : >-
19- bin/bump_version.py
29+ poetry version patch
2030
21- - name : Commit updated version.py
31+ - name : Commit updated version.
2232 id : commit_updated
2333 run : |
2434 git config --global user.name 'github-actions'
2535 git config --global user.email 'bot@noreply.github.com'
2636 git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
27- git add setup.py
37+ git add pyproject.toml
2838 git commit -m "bump version" && git push || echo "No changes to commit"
2939 git log -n 1 --pretty=format:"%H" | tail -n 1 | awk '{print "::set-output name=sha::"$0}'
3040
3141 - name : Get version
3242 id : get_version
3343 run : >-
34- bin/show_version.py
44+ poetry version
3545
3646 - name : Create GitHub release
3747 uses : actions/create-release@v1
4757 env :
4858 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4959
50- - name : Set up Python 3.9
51- uses : actions/setup-python@v2
52- with :
53- python-version : 3.9
54-
55- - name : Install pypa/build
56- run : >-
57- python -m
58- pip install
59- build
60- --user
61-
6260 - name : Build a binary wheel and a source tarball
6361 run : >-
64- python -m
65- build
66- --sdist
67- --wheel
68- --outdir dist/
69- .
62+ poetry build
7063
7164 - name : Publish to PyPI
7265 uses : pypa/gh-action-pypi-publish@master
@@ -79,14 +72,14 @@ jobs:
7972 # needs: release_create
8073 # steps:
8174 # - name: Checkout
82- # uses: actions/checkout@v3
75+ # uses: actions/checkout@v4
8376 # with:
8477 # ref: ${{ needs.release_create.outputs.new_sha }}
8578
8679 # - name: Set up Python 3.9
87- # uses: actions/setup-python@v2
80+ # uses: actions/setup-python@v5
8881 # with:
89- # python-version: 3.9
82+ # python-version: " 3.9"
9083
9184 # - name: Setup code signing
9285 # env:
@@ -125,21 +118,19 @@ jobs:
125118 needs : release_create
126119 steps :
127120 - name : Checkout
128- uses : actions/checkout@v3
121+ uses : actions/checkout@v4
129122 with :
130123 ref : ${{ needs.release_create.outputs.new_sha }}
131124
132125 - name : Set up Python 3.9
133- uses : actions/setup-python@v2
126+ uses : actions/setup-python@v5
134127 with :
135- python-version : 3.9
128+ python-version : " 3.9"
136129
137130 - name : Build
138131 run : |
139- pip install pyinstaller
140- pip install -r requirements.txt
141- pip install .
142- pyinstaller -F -n meshtastic --collect-all meshtastic meshtastic/__main__.py
132+ pip install poetry
133+ bin/build-bin.sh
143134
144135 - name : Add ubuntu to release
145136 uses : actions/upload-release-asset@v1
@@ -166,21 +157,19 @@ jobs:
166157 needs : release_create
167158 steps :
168159 - name : Checkout
169- uses : actions/checkout@v3
160+ uses : actions/checkout@v4
170161 with :
171162 ref : ${{ needs.release_create.outputs.new_sha }}
172163
173164 - name : Set up Python 3.9
174- uses : actions/setup-python@v2
165+ uses : actions/setup-python@v5
175166 with :
176- python-version : 3.9
167+ python-version : " 3.9"
177168
178169 - name : Build
179170 run : |
180- pip install pyinstaller
181- pip install -r requirements.txt
182- pip install .
183- pyinstaller -F -n meshtastic --collect-all meshtastic meshtastic/__main__.py
171+ pip install poetry
172+ bin/build-bin.sh
184173
185174 - name : Add windows to release
186175 uses : actions/upload-release-asset@v1
0 commit comments