v0.1.7 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build_wheels: | |
name: Build wheel | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install wheel | |
- name: Build wheel | |
run: pip wheel -w wheels . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: artifact | |
path: ./wheels/python_bindiff*.whl | |
build_sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Build sdist | |
run: | | |
python -m pip install -U pip build | |
python -m build --sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: artifact | |
path: dist/*.tar.gz | |
upload_pypi: | |
needs: [build_wheels, build_sdist] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
# unpacks default artifact into dist/ | |
# if `name: artifact` is omitted, the action will create extra parent dir | |
name: artifact | |
path: dist | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.2 | |
with: | |
password: ${{ secrets.PYPI_DEPLOY_TOKEN }} | |
- name: Upload Python packages for release notes | |
uses: softprops/action-gh-release@v0.1.15 | |
with: | |
files: | | |
dist/* |