Skip to content

Commit

Permalink
Merge pull request #41 from launchflow/release
Browse files Browse the repository at this point in the history
add release workflow
  • Loading branch information
boetro authored Feb 22, 2023
2 parents 3b93f6c + 4ce68d3 commit 732a51f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: python
package-name: release-please-action

- uses: actions/checkout@v3
if: ${{ steps.release.outputs.releases_created }}

- name: Set up Python 3.10
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Build Python distribution
run: |
pip install build
python -m build
- name: Publish a Python distribution to PyPI
if: ${{ steps.release.outputs.releases_created }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 732a51f

Please sign in to comment.