Merge branch 'master' of github.com:mongodb/mongo-python-driver
This commit is contained in:
commit
3330ee0cfa
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -34,6 +34,8 @@ jobs:
|
||||
build-mode: manual
|
||||
- language: python
|
||||
build-mode: none
|
||||
- language: actions
|
||||
build-mode: none
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
23
.github/workflows/release-python.yml
vendored
23
.github/workflows/release-python.yml
vendored
@ -13,6 +13,8 @@ on:
|
||||
description: "Dry Run?"
|
||||
default: false
|
||||
type: boolean
|
||||
schedule:
|
||||
- cron: '30 5 * * *'
|
||||
|
||||
env:
|
||||
# Changes per repo
|
||||
@ -20,6 +22,10 @@ env:
|
||||
# Changes per branch
|
||||
SILK_ASSET_GROUP: mongodb-python-driver
|
||||
EVERGREEN_PROJECT: mongo-python-driver
|
||||
# Constant
|
||||
DRY_RUN: ${{ inputs.dry_run || 'true' }}
|
||||
FOLLOWING_VERSION: ${{ inputs.following_version || '' }}
|
||||
VERSION: ${{ inputs.version || '10.10.10.10' }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@ -48,8 +54,8 @@ jobs:
|
||||
- uses: mongodb-labs/drivers-github-tools/python/pre-publish@v2
|
||||
id: pre-publish
|
||||
with:
|
||||
version: ${{ inputs.version }}
|
||||
dry_run: ${{ inputs.dry_run }}
|
||||
version: ${{ env.VERSION }}
|
||||
dry_run: ${{ env.DRY_RUN }}
|
||||
|
||||
build-dist:
|
||||
needs: [pre-publish]
|
||||
@ -78,8 +84,13 @@ jobs:
|
||||
with:
|
||||
name: all-dist-${{ github.run_id }}
|
||||
path: dist/
|
||||
- name: Publish package distributions to TestPyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
repository-url: https://test.pypi.org/legacy/
|
||||
skip-existing: true
|
||||
- name: Publish package distributions to PyPI
|
||||
if: startsWith(inputs.dry_run, 'false')
|
||||
if: startsWith(env.DRY_RUN, 'false')
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
||||
post-publish:
|
||||
@ -104,10 +115,10 @@ jobs:
|
||||
artifactory_username: ${{ vars.ARTIFACTORY_USERNAME }}
|
||||
- uses: mongodb-labs/drivers-github-tools/python/post-publish@v2
|
||||
with:
|
||||
version: ${{ inputs.version }}
|
||||
following_version: ${{ inputs.following_version }}
|
||||
version: ${{ env.VERSION }}
|
||||
following_version: ${{ env.FOLLOWING_VERSION }}
|
||||
product_name: ${{ env.PRODUCT_NAME }}
|
||||
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
|
||||
evergreen_project: ${{ env.EVERGREEN_PROJECT }}
|
||||
token: ${{ github.token }}
|
||||
dry_run: ${{ inputs.dry_run }}
|
||||
dry_run: ${{ env.DRY_RUN }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user