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

Build and Release on PyPI #3

Merged
merged 5 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Test publication on PyPI
  • Loading branch information
avvertix committed Sep 17, 2024
commit 41cad17a3684e2c9d19705058aeaddafd60c63a5
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: parse_model_release
if-no-files-found: error
retention-days: 1
path: dist/*

pypi-publish:
Expand All @@ -54,14 +56,9 @@ jobs:
with:
name: parse_model_release
path: dist

- name: Display structure of downloaded files
run: ls -R dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
repository-url: https://test.pypi.org/legacy/
print-hash: true
verbose: true
print-hash: true
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='parse-document-model',
version='0.1.0',
version='0.0.1',
description='Pydantic models for representing a text document as a hierarchical structure.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down