-
Notifications
You must be signed in to change notification settings - Fork 178
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
Conversation
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
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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