-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,21 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build package | ||
run: poetry build | ||
- name: Build wheel | ||
run: poetry build --format wheel | ||
|
||
# Conditionally build sdist | ||
- name: Build sdist | ||
if: matrix.python-version == '3.8' | ||
run: poetry build --format sdist | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{secrets.PYPI_TOKEN}} | ||
password: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,22 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{matrix.python-version}} | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build package | ||
run: poetry build | ||
- name: Build wheel | ||
run: poetry build --format wheel | ||
|
||
# Conditionally build sdist | ||
- name: Build sdist | ||
if: matrix.python-version == '3.8' | ||
run: poetry build --format sdist | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{secrets.TESTPYPI_TOKEN}} | ||
password: ${{ secrets.TESTPYPI_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ |