fix(sdk): javascript client customer stripe method (#3597) #3
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
| name: Python SDK Beta Release | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release-beta-sdk: | |
| name: Python SDK Beta Release | |
| runs-on: depot-ubuntu-latest-8 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| persist-credentials: false | |
| - name: Get short SHA | |
| id: get-short-sha | |
| run: | | |
| id=$(echo ${{ github.sha }} | cut -c 1-12) | |
| echo "id=${id}" >> $GITHUB_OUTPUT | |
| # If you keep using Nix for your dev shell / tooling, retain these steps | |
| - name: Set up Nix | |
| uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34 | |
| with: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| nix_conf: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| keep-env-derivations = true | |
| keep-outputs = true | |
| - name: Restore Nix store | |
| uses: nix-community/cache-nix-action/restore@135667ec418502fa5a3598af6fb9eb733888ce6a # v6.1.3 | |
| with: | |
| primary-key: ${{ runner.os }}-openmeter-nix-build-${{ github.ref_name }}-${{ hashFiles('flake.*') }} | |
| restore-prefixes-first-match: | | |
| ${{ runner.os }}-openmeter-nix-build-${{ github.ref_name }}- | |
| ${{ runner.os }}-openmeter-nix-build-main-${{ hashFiles('flake.*') }} | |
| ${{ runner.os }}-openmeter-nix-build-main- | |
| ${{ runner.os }}-openmeter-nix-build- | |
| - name: Publish Python package via Nix make target | |
| run: | | |
| nix develop --impure .#ci -c make -C api/client/python publish-python-sdk | |
| env: | |
| PY_SDK_RELEASE_TAG: alpha | |
| COMMIT_SHORT_SHA: ${{ steps.get-short-sha.outputs.id }} | |
| POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} |