Skip to content

Commit

Permalink
clean up publish code
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Morris committed Jun 28, 2024
1 parent 1dda734 commit e6875e4
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,17 @@ jobs:
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

0 comments on commit e6875e4

Please sign in to comment.