Merge pull request #133 from scop/chore/ignores #78
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: | |
push: | |
branches: | |
- main | |
jobs: | |
release_please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release_please | |
with: | |
release-type: python | |
package-name: hashpipe | |
pull-request-title-pattern: "chore: release${component} ${version}" | |
outputs: | |
release_created: ${{ steps.release_please.outputs.release_created }} | |
sha: ${{ steps.release_please.outputs.sha }} | |
pypi_upload: | |
runs-on: ubuntu-latest | |
needs: release_please | |
if: needs.release_please.outputs.release_created | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.release_please.outputs.sha }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Create release assets | |
run: | | |
set -euxo pipefail | |
python3 -m pip install -U setuptools wheel | |
python3 setup.py sdist bdist_wheel | |
ls dist | |
- uses: pypa/[email protected] | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |