From da723e5b7e4dc64282b8f2e31650837879e1b008 Mon Sep 17 00:00:00 2001 From: Andre Furlan Date: Fri, 16 Feb 2024 12:53:35 -0800 Subject: [PATCH] Remove version smarts from github workflows (#360) * remove version smarts in github workflow Signed-off-by: Andre Furlan --------- Signed-off-by: Andre Furlan --- .github/workflows/publish-test.yml | 14 -------------- .github/workflows/publish.yml | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/.github/workflows/publish-test.yml b/.github/workflows/publish-test.yml index d95e2e3c..ecfee77f 100644 --- a/.github/workflows/publish-test.yml +++ b/.github/workflows/publish-test.yml @@ -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/version-increment@2022.2.4 - 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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9ea751d0..9df76546 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/version-increment@2022.2.4 - 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 #----------------------------------------------