Update release.yaml

This commit is contained in:
João Malés 2024-07-08 11:31:44 +01:00 committed by GitHub
parent c9312b6299
commit 692756edee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,8 @@
name: Release name: Release
on: on:
pull_request: push:
types: tags:
- closed - '*'
jobs: jobs:
set-package-matrix: set-package-matrix:
@ -41,31 +41,11 @@ jobs:
pip install setuptools wheel build pip install setuptools wheel build
- name: Build - name: Build
run: | run: |
echo $GITHUB_REF_NAME >> ${{ matrix.package-name }}/.version
cp .version LICENSE NOTICE ${{ matrix.package-name }}/ cp .version LICENSE NOTICE ${{ matrix.package-name }}/
python -m build ${{ matrix.package-name }} --outdir dist/ python -m build ${{ matrix.package-name }} --outdir dist/
- name: Publish - name: Publish
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
skip-existing: true 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