mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
Update release.yaml
This commit is contained in:
parent
c9312b6299
commit
692756edee
28
.github/workflows/release.yaml
vendored
28
.github/workflows/release.yaml
vendored
@ -1,8 +1,8 @@
|
||||
name: Release
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
set-package-matrix:
|
||||
@ -41,31 +41,11 @@ jobs:
|
||||
pip install setuptools wheel build
|
||||
- name: Build
|
||||
run: |
|
||||
echo $GITHUB_REF_NAME >> ${{ matrix.package-name }}/.version
|
||||
cp .version LICENSE NOTICE ${{ matrix.package-name }}/
|
||||
python -m build ${{ matrix.package-name }} --outdir dist/
|
||||
- name: Publish
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
skip-existing: true
|
||||
bump-version:
|
||||
needs: deployment
|
||||
name: Bump version and commit
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
cache: pip
|
||||
python-version: '3.11'
|
||||
- name: Install bumpversion
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_BYPASS }}
|
||||
run: |
|
||||
git config user.name "API Team"
|
||||
git config user.email "api-team@thousandeyes.com"
|
||||
|
||||
pip install bumpversion
|
||||
bumpversion minor --commit
|
||||
git push --force
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user