Skip to content

Commit

Permalink
PYTHON-4389 Fix handling of dist files (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Jun 25, 2024
1 parent 8a6ffa2 commit 9c939c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/dist-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
force:
required: true
type: boolean
ref:
required: true
type: string

concurrency:
group: python-dist-${{ github.ref }}
Expand All @@ -40,6 +43,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.ref }}

- uses: actions/setup-python@v5
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
permissions:
id-token: write
contents: write
outputs:
version: ${{ steps.pre-publish.outputs.version }}
steps:
- uses: mongodb-labs/drivers-github-tools/secure-checkout@v2
with:
Expand All @@ -44,6 +46,7 @@ jobs:
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
artifactory_username: ${{ vars.ARTIFACTORY_USERNAME }}
- uses: mongodb-labs/drivers-github-tools/python/pre-publish@v2
id: pre-publish
with:
version: ${{ inputs.version }}
working_directory: ./bindings/python
Expand All @@ -54,12 +57,13 @@ jobs:
uses: ./.github/workflows/dist-python.yml
with:
force: true
ref: ${{ needs.pre-publish.outputs.version }}

static-scan:
needs: [pre-publish]
uses: ./.github/workflows/codeql.yml
with:
ref: ${{ github.ref }}
ref: ${{ needs.pre-publish.outputs.version }}

publish:
needs: [build-dist, static-scan]
Expand Down

0 comments on commit 9c939c4

Please sign in to comment.