chore(ci): change upload type

This commit is contained in:
stainless-app[bot] 2025-07-02 05:09:23 +00:00
parent 8b23bb2bb1
commit 3afcacf5f9
2 changed files with 23 additions and 7 deletions

View file

@ -35,10 +35,10 @@ jobs:
- name: Run lints
run: ./scripts/lint
upload:
build:
if: github.repository == 'stainless-sdks/opencode-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: upload
name: build
permissions:
contents: read
id-token: write
@ -46,6 +46,20 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Install dependencies
run: rye sync --all-features
- name: Run build
run: rye build
- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6