Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 8 additions & 2 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Publish to PyPI [Test]
on: [push]
on:
push:
workflow_dispatch:
jobs:
test-pypi:
name: Create patch version number and push to test-pypi
Expand Down Expand Up @@ -52,7 +54,11 @@ jobs:
# Tell poetry to update the version number
#----------------------------------------------
- name: Update pyproject.toml
run: poetry version ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.dev$(date +%s)
run: |
echo "Major version - ${{ steps.version.outputs.major-version }}"
echo "Minor version - ${{ steps.version.outputs.minor-version }}"
echo "Current Version - ${{ steps.version.outputs.current-version }}"
poetry version ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.dev$(date +%s)
#----------------------------------------------
# Attempt push to test-pypi
#----------------------------------------------
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
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:
Expand Down Expand Up @@ -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 }}
Loading