Skip to content

Commit

Permalink
Update PyPI release workflow with build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
manzik committed Sep 23, 2024
1 parent 773a899 commit 71a7729
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
workflow_dispatch:

jobs:
pypi-publish:
name: pypi-publish
Expand All @@ -14,7 +15,22 @@ jobs:
url: https://pypi.org/p/cmdbench
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

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

0 comments on commit 71a7729

Please sign in to comment.