-
Notifications
You must be signed in to change notification settings - Fork 100
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
1 parent
0a26ccd
commit a8c2c75
Showing
1 changed file
with
10 additions
and
5 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: Publish to PyPI [Production] | ||
on: | ||
push: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
jobs: | ||
|
@@ -54,11 +56,14 @@ jobs: | |
# Tell poetry to use the `current-version` that was found by the previous step | ||
#----------------------------------------------------------------------------- | ||
- name: Update pyproject.toml | ||
run: poetry version ${{ steps.version.outputs.current-version }} | ||
run: | | ||
echo "Current version - ${{ steps.version.outputs.current-version }}" | ||
poetry version ${{ steps.version.outputs.current-version }} | ||
echo "Updated version - $(poetry version -s)" | ||
#---------------------------------------------- | ||
# Attempt push to test-pypi | ||
#---------------------------------------------- | ||
- name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
with: | ||
pypi_token: ${{ secrets.PROD_PYPI_TOKEN }} | ||
# - name: Build and publish to pypi | ||
# uses: JRubics/[email protected] | ||
# with: | ||
# pypi_token: ${{ secrets.PROD_PYPI_TOKEN }} |