File tree 2 files changed +0
-28
lines changed
2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change 40
40
if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
41
41
run : poetry install --no-interaction --no-root
42
42
# ----------------------------------------------
43
- # Get the current version and increment it (test-pypi requires a unique version number)
44
- # ----------------------------------------------
45
- - name : Get next version
46
-
47
- id : version
48
- with :
49
- scheme : semver
50
- increment : patch
51
- # ----------------------------------------------
52
- # Tell poetry to update the version number
53
- # ----------------------------------------------
54
- - name : Update pyproject.toml
55
- run : poetry version ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.dev$(date +%s)
56
- # ----------------------------------------------
57
43
# Attempt push to test-pypi
58
44
# ----------------------------------------------
59
45
- name : Build and publish to pypi
Original file line number Diff line number Diff line change 41
41
- name : Install dependencies
42
42
if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
43
43
run : poetry install --no-interaction --no-root
44
- # ------------------------------------------------------------------------------------------------
45
- # Here we use version-increment to fetch the latest tagged version (we won't increment it though)
46
- # ------------------------------------------------------------------------------------------------
47
- - name : Get next version
48
-
49
- id : version
50
- with :
51
- scheme : semver
52
- increment : patch
53
- # -----------------------------------------------------------------------------
54
- # Tell poetry to use the `current-version` that was found by the previous step
55
- # -----------------------------------------------------------------------------
56
- - name : Update pyproject.toml
57
- run : poetry version ${{ steps.version.outputs.current-version }}
58
44
# ----------------------------------------------
59
45
# Attempt push to test-pypi
60
46
# ----------------------------------------------
You can’t perform that action at this time.
0 commit comments