-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove version smarts from github workflows (#360)
* remove version smarts in github workflow Signed-off-by: Andre Furlan <[email protected]> --------- Signed-off-by: Andre Furlan <[email protected]>
- Loading branch information
1 parent
d46b501
commit da723e5
Showing
2 changed files
with
0 additions
and
28 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 |
---|---|---|
|
@@ -40,20 +40,6 @@ jobs: | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
#---------------------------------------------- | ||
# Get the current version and increment it (test-pypi requires a unique version number) | ||
#---------------------------------------------- | ||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
id: version | ||
with: | ||
scheme: semver | ||
increment: patch | ||
#---------------------------------------------- | ||
# 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) | ||
#---------------------------------------------- | ||
# Attempt push to test-pypi | ||
#---------------------------------------------- | ||
- name: Build and publish to pypi | ||
|
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 |
---|---|---|
|
@@ -41,20 +41,6 @@ jobs: | |
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
#------------------------------------------------------------------------------------------------ | ||
# Here we use version-increment to fetch the latest tagged version (we won't increment it though) | ||
#------------------------------------------------------------------------------------------------ | ||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
id: version | ||
with: | ||
scheme: semver | ||
increment: patch | ||
#----------------------------------------------------------------------------- | ||
# 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 }} | ||
#---------------------------------------------- | ||
# Attempt push to test-pypi | ||
#---------------------------------------------- | ||
|