Skip to content

Commit

Permalink
fix(ci): staging cd now can only be triggered via release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ninopleno committed Dec 4, 2023
1 parent 1aee2e9 commit 65a15e1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/cd-stg.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: CD PyPi
name: CD PyPi Staging

on:
workflow_dispatch:
push:
branches:
- "feature/**/**"
- "fix/**/**"
- "release/v*.*.*"
workflow_run:
workflows: ["CI Automated Testing"]
types:
- completed

jobs:
build-distribution:
build-staging-distribution:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit 65a15e1

Please sign in to comment.