Skip to content

Commit f7871a4

Browse files
chore(ci): skip uploading artifacts on stainless-internal branches
1 parent 78c8649 commit f7871a4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,28 @@ jobs:
6565
run: ./scripts/build
6666

6767
- name: Get GitHub OIDC Token
68-
if: github.repository == 'stainless-sdks/sent-dm-typescript'
68+
if: |-
69+
github.repository == 'stainless-sdks/sent-dm-typescript' &&
70+
!startsWith(github.ref, 'refs/heads/stl/')
6971
id: github-oidc
7072
uses: actions/github-script@v8
7173
with:
7274
script: core.setOutput('github_token', await core.getIDToken());
7375

7476
- name: Upload tarball
75-
if: github.repository == 'stainless-sdks/sent-dm-typescript'
77+
if: |-
78+
github.repository == 'stainless-sdks/sent-dm-typescript' &&
79+
!startsWith(github.ref, 'refs/heads/stl/')
7680
env:
7781
URL: https://pkg.stainless.com/s
7882
AUTH: ${{ steps.github-oidc.outputs.github_token }}
7983
SHA: ${{ github.sha }}
8084
run: ./scripts/utils/upload-artifact.sh
8185

8286
- name: Upload MCP Server tarball
83-
if: github.repository == 'stainless-sdks/sent-dm-typescript'
87+
if: |-
88+
github.repository == 'stainless-sdks/sent-dm-typescript' &&
89+
!startsWith(github.ref, 'refs/heads/stl/')
8490
env:
8591
URL: https://pkg.stainless.com/s?subpackage=mcp-server
8692
AUTH: ${{ steps.github-oidc.outputs.github_token }}

0 commit comments

Comments
 (0)