mirror of
https://github.com/apache/thrift.git
synced 2026-03-26 04:32:07 +00:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
#
|
|
# Apache Thrift release publishing workflow
|
|
#
|
|
# When a release is created in GitHub, it should be created in pre-release
|
|
# mode first. This will trigger a "prereleased" event which will cause this
|
|
# workflow to run and publish packages to various package managers. You
|
|
# must check the Actions tab in GitHub to see the result of the workflow.
|
|
#
|
|
# github.event.action is either "prereleased" or "released" and corresponds
|
|
# with a named environment in CloudTruth
|
|
#
|
|
# | Destinations
|
|
# Language | Prereleased | Released
|
|
# ----------+---------------+---------------
|
|
# py | test.pypi.org | pypi.org
|
|
#
|
|
---
|
|
name: Publish
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- prereleased
|
|
- released
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pypi:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
- uses: actions/setup-python@v6
|
|
- name: Get configuration and secrets from CloudTruth
|
|
uses: ./.github/actions/cloudtruth/configure-action
|
|
with:
|
|
apikey: "${{ secrets.CLOUDTRUTH_API_KEY }}"
|
|
project: "${{ github.repository }}"
|
|
environment: "${{ github.event.action }}"
|
|
- name: build sdist
|
|
run: "cd lib/py && python setup.py sdist"
|
|
- name: Publish to PyPI
|
|
uses: ./.github/actions/pypa/gh-action-pypi-publish
|
|
with:
|
|
password: "${{ env.PYPI_PASSWORD }}"
|
|
repository_url: "${{ env.PYPI_REPOSITORY }}"
|
|
packages_dir: lib/py/dist
|