Skip to content

Commit

Permalink
ci: try Google's release-please action (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys committed Jun 25, 2023
1 parent 130b8ef commit 3f6dd65
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
on:
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- main

jobs:
pypi_release:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: python
package-name: splunk_kvstore_cli
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-python@v4
if: ${{ steps.release.outputs.release_created }}
with:
python-version: "3.9"
- run: >-
python -m pip install build
- run: >-
python -m build
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.8.6
- run: python -m pip install build
if: ${{ steps.release.outputs.release_created }}
- run: python -m build
if: ${{ steps.release.outputs.release_created }}
- uses: pypa/gh-action-pypi-publish@v1.8.6
if: ${{ steps.release.outputs.release_created }}
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
gh_release:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- run: |
gh release create ${{ github.ref_name }} --generate-notes

0 comments on commit 3f6dd65

Please sign in to comment.