ci: let setup decide where the bundle comes from #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| workflow_call: | |
| inputs: | |
| ref: | |
| description: Ref of this repository to build. | |
| required: false | |
| type: string | |
| default: main | |
| name: Build | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: vrchatapi/vrchatapi-python | |
| ref: ${{ inputs.ref || github.ref }} | |
| - uses: vrchatapi/specification/.github/actions/setup@ci/modernise-actions | |
| with: | |
| bundle: openapi-legacy.yaml | |
| generator: 6.2.1 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.14' | |
| - run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)" | |
| - run: python -m pip install --upgrade pip build | |
| - run: python -m build | |
| - run: python -m pip install dist/*.whl | |
| - run: python -c "import vrchatapi; print(vrchatapi.__name__)" |