Skip to content

INTPYTHON-594 Add automated release workflow #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 21, 2025

Conversation

blink1073
Copy link
Member

I couldn't claim the test pypi package, so I added a strict twine check instead.

Passing dry run build: https://github.com/mongodb-labs/flask-pymongo/actions/runs/14573288115

@blink1073 blink1073 requested a review from aclark4life April 21, 2025 12:20
@blink1073 blink1073 changed the title INTPYTHON-589 Add automated release workflow INTPYTHON-594 Add automated release workflow Apr 21, 2025
Comment on lines +27 to +58
make_dist:
name: Make Dist
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-python@v5
with:
# Build sdist on lowest supported Python
python-version: '3.9'

- name: Install python requirements
run: |
python -m pip install uv rust-just build twine

- name: Build Dist
run: |
python -m build .

- name: Test SDist
run: |
python -m twine check --strict dist/*.*
python -m pip install dist/*.gz
cd ..
python -c "from flask_pymongo import PyMongo"

- uses: actions/upload-artifact@v4
with:
name: "dist"
path: ./dist/*.*

Check warning

Code scanning / zizmor

default permissions used due to no permissions: block Warning

default permissions used due to no permissions: block
Comment on lines +58 to +62
build-dist:
needs: [pre-publish]
uses: ./.github/workflows/dist-python.yml
with:
ref: ${{ needs.pre-publish.outputs.version }}

Check warning

Code scanning / zizmor

default permissions used due to no permissions: block Warning

default permissions used due to no permissions: block
Copy link
Collaborator

@aclark4life aclark4life left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@blink1073 blink1073 merged commit 4c58c91 into mongodb-labs:main Apr 21, 2025
26 checks passed
@blink1073 blink1073 deleted the INTPYTHON-589 branch April 21, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants