Skip to content

Commit

Permalink
Merge branch 'main' into search-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Oct 1, 2023
2 parents 3f27d34 + 3f48c0c commit c33e6ae
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pypi-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build & maybe upload PyPI package

on:
push:
pull_request:
release:
types:
- published
workflow_dispatch:

permissions:
contents: read

jobs:
# Always build & lint package.
build-package:
name: Build & verify package
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: hynek/build-and-inspect-python-package@v1

# Upload to real PyPI on GitHub Releases.
release-pypi:
name: Publish to PyPI
environment: release-pypi
# Only run for published releases.
if: github.repository_owner == 'python' && github.event.action == 'published'
runs-on: ubuntu-latest
needs: build-package

permissions:
id-token: write

steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 4 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# How to release
How to release
--------------

- Update CHANGELOG.rst
- bump version (YYYY.MM) in pyproject.toml
Expand All @@ -13,7 +14,8 @@
- push the tag (``git push --tags``)


# Makefile usage
Makefile usage
--------------

This project includes a simple Makefile for syncing changes to the theme with
the main CPython repository. Run ``make help`` for details on available rules.
Expand Down

0 comments on commit c33e6ae

Please sign in to comment.