From 65a15e1a6fb6a5625c25f0a33fdf6a9f96ff9da5 Mon Sep 17 00:00:00 2001 From: "N. L." Date: Mon, 4 Dec 2023 23:05:57 +0100 Subject: [PATCH] fix(ci): staging cd now can only be triggered via release branch --- .github/workflows/cd-stg.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd-stg.yaml b/.github/workflows/cd-stg.yaml index d8cc879..6937f39 100644 --- a/.github/workflows/cd-stg.yaml +++ b/.github/workflows/cd-stg.yaml @@ -1,11 +1,9 @@ -name: CD PyPi +name: CD PyPi Staging on: workflow_dispatch: push: branches: - - "feature/**/**" - - "fix/**/**" - "release/v*.*.*" workflow_run: workflows: ["CI Automated Testing"] @@ -13,7 +11,7 @@ on: - completed jobs: - build-distribution: + build-staging-distribution: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.0 @@ -39,16 +37,13 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI needs: - - build + - build-staging-distribution runs-on: ubuntu-latest - environment: name: testpypi url: https://test.pypi.org/p/anomalytics - permissions: id-token: write - steps: - name: Download all the dists uses: actions/download-artifact@v3