Merge pull request #33 from xiachufang/release-please--branches--master #15
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
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
name: release please | |
jobs: | |
release-please: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: python | |
package-name: outplan | |
- uses: actions/checkout@v3 | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Publish / Prepare python | |
if: ${{ steps.release.outputs.release_created }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Publish / Install deps | |
if: ${{ steps.release.outputs.release_created }} | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Publish / Build | |
if: ${{ steps.release.outputs.release_created }} | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Publish / Push to PyPI | |
if: ${{ steps.release.outputs.release_created }} | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: "${{ secrets.PYPI_API_TOKEN }}" | |
verbose: true |