Skip to content

Commit

Permalink
Building a package
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky committed Oct 31, 2022
1 parent eb8d99b commit da421e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,18 @@ jobs:
with:
python-version: "3.10"

- name: Build and test
run: |
python setup.py sdist
- name: Install build dependencies
run: pip install poetry poetry-dynamic-versioning

- name: Build package
run: poetry build

- name: Uploading to test PyPI
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.5.1
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,3 @@ venv.bak/
.vscode

stream.bin
.DS_Store

0 comments on commit da421e6

Please sign in to comment.