Skip to content
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

release a minor version with all main merges #389

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,40 @@ name: publish
on:
push:
branches: [main]

jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: write # Add this permission to allow pushing the version bump
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Setup PDM
uses: pdm-project/setup-pdm@v2
with:
python-version: "3.10"

- name: Install bumpversion
run: pip install bumpversion

- name: Configure Git
run: |
git config user.name github-actions
git config user.email [email protected]

- name: Apply bumpversion minor
run: |
bumpversion minor
git push
git push --tags

- name: Build package
run: pdm build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
Loading