Skip to content

Commit 0c8dc9b

Browse files
committed
Add steps to build project in publishing workflow
Workflow adjustments are drawn from parts of a blog post. References: * https://johnfraney.ca/blog/how-to-publish-a-python-package-with-poetry-and-github-actions/ Disclaimer: Participation by NIST in the creation of the documentation of mentioned software is not intended to imply a recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that any specific software is necessarily the best available for the purpose. Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent cd5c856 commit 0c8dc9b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,21 @@ jobs:
3131
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
3232
id-token: write
3333
steps:
34+
- name: Checkout Repository
35+
uses: actions/checkout@v4
36+
37+
- name: Set up oldest tested Python
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: "3.9"
41+
42+
- name: Install Dependencies
43+
run: |
44+
pip -q install poetry
45+
poetry install
46+
47+
- name: Build Package
48+
run: poetry build
49+
3450
- name: Push to PyPi
3551
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)