From 692756edee0f7d697c0235a31c1c3deb8fa9f489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mal=C3=A9s?= <85952626+joaomper-TE@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:31:44 +0100 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 165aa36d..f4767c0a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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