Skip to content

Commit b556a02

Browse files
authored
Update GitHub Actions for release workflow
1 parent 9726bfe commit b556a02

File tree

1 file changed

+15
-29
lines changed

1 file changed

+15
-29
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,44 @@ on:
55
types: [published]
66

77
jobs:
8-
build_wheels:
9-
name: Build wheel
8+
build_wheel_and_sdist:
9+
name: Build wheel and tar.gz
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v4
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-python@v6
1515
with:
1616
python-version: '3.10'
1717
- 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
2222
with:
2323
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
4127
4228
upload_pypi:
43-
needs: [build_wheels, build_sdist]
29+
needs: build_wheel_and_sdist
4430
runs-on: ubuntu-latest
4531
steps:
46-
- uses: actions/download-artifact@v3
32+
- uses: actions/download-artifact@v6
4733
with:
4834
# unpacks default artifact into dist/
4935
# if `name: artifact` is omitted, the action will create extra parent dir
5036
name: artifact
5137
path: dist
5238

5339
- 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
5541
with:
5642
password: ${{ secrets.PYPI_DEPLOY_TOKEN }}
5743

5844
- 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
6046
with:
6147
files: |
6248
dist/*

0 commit comments

Comments
 (0)