|
5 | 5 | types: [published] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build_wheels: |
9 | | - name: Build wheel |
| 8 | + build_wheel_and_sdist: |
| 9 | + name: Build wheel and tar.gz |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 |
|
12 | 12 | steps: |
13 | | - - uses: actions/checkout@v3 |
14 | | - - uses: actions/setup-python@v4 |
| 13 | + - uses: actions/checkout@v6 |
| 14 | + - uses: actions/setup-python@v6 |
15 | 15 | with: |
16 | 16 | python-version: '3.10' |
17 | 17 | - name: Install dependencies |
18 | | - run: pip install wheel |
19 | | - - name: Build wheel |
20 | | - run: pip wheel -w wheels . |
21 | | - - uses: actions/upload-artifact@v3 |
| 18 | + run: pip install build |
| 19 | + - name: Build wheel and sdist |
| 20 | + run: python -m build |
| 21 | + - uses: actions/upload-artifact@v5 |
22 | 22 | with: |
23 | 23 | name: artifact |
24 | | - path: ./wheels/python_bindiff*.whl |
25 | | - |
26 | | - build_sdist: |
27 | | - runs-on: ubuntu-latest |
28 | | - steps: |
29 | | - - uses: actions/checkout@v3 |
30 | | - - uses: actions/setup-python@v4 |
31 | | - with: |
32 | | - python-version: '3.10' |
33 | | - - name: Build sdist |
34 | | - run: | |
35 | | - python -m pip install -U pip build |
36 | | - python -m build --sdist |
37 | | - - uses: actions/upload-artifact@v3 |
38 | | - with: |
39 | | - name: artifact |
40 | | - path: dist/*.tar.gz |
| 24 | + path: | |
| 25 | + ./dist/python_bindiff*.whl |
| 26 | + ./dist/*.tar.gz |
41 | 27 |
|
42 | 28 | upload_pypi: |
43 | | - needs: [build_wheels, build_sdist] |
| 29 | + needs: build_wheel_and_sdist |
44 | 30 | runs-on: ubuntu-latest |
45 | 31 | steps: |
46 | | - - uses: actions/download-artifact@v3 |
| 32 | + - uses: actions/download-artifact@v6 |
47 | 33 | with: |
48 | 34 | # unpacks default artifact into dist/ |
49 | 35 | # if `name: artifact` is omitted, the action will create extra parent dir |
50 | 36 | name: artifact |
51 | 37 | path: dist |
52 | 38 |
|
53 | 39 | - name: Publish a Python distribution to PyPI |
54 | | - uses: pypa/gh-action-pypi-publish@v1.8.2 |
| 40 | + uses: pypa/gh-action-pypi-publish@v1.13.0 |
55 | 41 | with: |
56 | 42 | password: ${{ secrets.PYPI_DEPLOY_TOKEN }} |
57 | 43 |
|
58 | 44 | - name: Upload Python packages for release notes |
59 | | - uses: softprops/action-gh-release@v0.1.15 |
| 45 | + uses: softprops/action-gh-release@v2.5.0 |
60 | 46 | with: |
61 | 47 | files: | |
62 | 48 | dist/* |
0 commit comments