Skip to content

v1.42.0

v1.42.0 #53

Workflow file for this run

name: Release
concurrency: sdk-release
on:
release:
types:
- published
env:
BIGQUERY_TABLE: jarvis-dev-268314.deployment_analytics.deployment_events
permissions:
contents: "read"
id-token: "write"
jobs:
release:
name: Release SDK to pypi repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pipenv
run: pipx install pipenv
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pipenv"
- name: Install
run: pipenv install
- name: Build
run: |
pipenv run python setup.py sdist bdist_wheel
- name: Publish a Python package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
- name: Get Version
run: |
export VERSION=$(cat .release-please-manifest.json | jq -r '."."')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
if: ${{ always() }}
with:
workload_identity_provider: "projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider"
service_account: "[email protected]"