From 21a4195b06fbb9e897bc7ca96796ab07a0918a7f Mon Sep 17 00:00:00 2001 From: Serge Smertin <259697+nfx@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:06:16 +0100 Subject: [PATCH] Fixed release workflows (#416) --- .../{dist-release.yml => release.yml} | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) rename .github/workflows/{dist-release.yml => release.yml} (63%) diff --git a/.github/workflows/dist-release.yml b/.github/workflows/release.yml similarity index 63% rename from .github/workflows/dist-release.yml rename to .github/workflows/release.yml index a1cedaff..173acd46 100644 --- a/.github/workflows/dist-release.yml +++ b/.github/workflows/release.yml @@ -1,21 +1,12 @@ -name: dist-release +name: Release on: - pull_request: - types: [opened, synchronize] - paths-ignore: - - 'docs/**' # Ignore changes in the docs folder for pull requests - - '.github' # Ignore changes in the .github folder for pull requests push: - branches: ['master'] - paths-ignore: - - 'docs/**' # Ignore changes in the docs folder for pushes - - '.github' # Ignore changes in the .github folder for pushes tags: - - 'v*' # only release a versioned tag, such as v.X.Y.Z + - 'v*' jobs: - release: + publish: runs-on: ubuntu-latest environment: release permissions: @@ -23,7 +14,6 @@ jobs: id-token: write # Used to attach signing artifacts to the published release. contents: write - steps: - uses: actions/checkout@v4 with: @@ -46,6 +36,6 @@ jobs: - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - if: startsWith(github.ref, 'refs/tags/v') with: packages-dir: python/dist/ +