mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-04-28 04:29:50 +00:00
chore: update github action
This commit is contained in:
parent
5f8681cf63
commit
a1b54afef1
1 changed files with 3 additions and 1 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
run: ./scripts/lint
|
run: ./scripts/lint
|
||||||
|
|
||||||
build:
|
build:
|
||||||
if: github.repository == 'stainless-sdks/opencode-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
name: build
|
name: build
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -61,12 +61,14 @@ jobs:
|
||||||
run: rye build
|
run: rye build
|
||||||
|
|
||||||
- name: Get GitHub OIDC Token
|
- name: Get GitHub OIDC Token
|
||||||
|
if: github.repository == 'stainless-sdks/opencode-python'
|
||||||
id: github-oidc
|
id: github-oidc
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: core.setOutput('github_token', await core.getIDToken());
|
script: core.setOutput('github_token', await core.getIDToken());
|
||||||
|
|
||||||
- name: Upload tarball
|
- name: Upload tarball
|
||||||
|
if: github.repository == 'stainless-sdks/opencode-python'
|
||||||
env:
|
env:
|
||||||
URL: https://pkg.stainless.com/s
|
URL: https://pkg.stainless.com/s
|
||||||
AUTH: ${{ steps.github-oidc.outputs.github_token }}
|
AUTH: ${{ steps.github-oidc.outputs.github_token }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue