Skip to content

ci: update gh-action-pypi-publish to release@v1 (#106) #4

ci: update gh-action-pypi-publish to release@v1 (#106)

ci: update gh-action-pypi-publish to release@v1 (#106) #4

on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Create release
id: release
uses: googleapis/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: python
- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v2
- name: Set up Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
if: ${{ steps.release.outputs.release_created }}
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
if: ${{ steps.release.outputs.release_created }}
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}