From 301b5d5b8f94deafb3c6935d7af2f57f9b2a9d8e Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 22 Feb 2023 13:47:25 +0100 Subject: [PATCH 1/3] Fix: The priority of workflow --- .github/workflows/ci_cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 1a23db5c..566f841d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -65,7 +65,7 @@ jobs: name: Doc stable version deploy if: github.event_name == 'push' && contains(github.ref, 'refs/tags') runs-on: ubuntu-latest - needs: doc-deploy-development + needs: release steps: - name: "Deploy stable documentation" uses: pyansys/actions/doc-deploy-stable@v3 @@ -77,7 +77,7 @@ jobs: build-library: name: "Build library" runs-on: ubuntu-latest - needs: doc-deploy-stable + needs: doc-build steps: - name: "Build library source and wheel artifacts" uses: pyansys/actions/build-library@v3 From 5a5e2af370b28f22f3b0966d2084cdd3dcef5780 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 22 Feb 2023 13:52:51 +0100 Subject: [PATCH 2/3] Fix :change the private pypi release --- .github/workflows/ci_cd.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 566f841d..8511bc0f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -90,14 +90,6 @@ jobs: needs: build-library runs-on: ubuntu-latest steps: - - - name: "Release to the private PyPI repository" - uses: pyansys/actions/release-pypi-private@v3 - with: - library-name: ${{ env.PACKAGE_NAME }} - twine-username: "__token__" - twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} - - name: "Release to the public PyPI repository" uses: pyansys/actions/release-pypi-public@v3 with: From e7eb2b0dfea7ab9a2703c81e9a7c32e871d773e4 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 22 Feb 2023 14:19:58 +0100 Subject: [PATCH 3/3] Fix: change the actions --- .github/workflows/ci_cd.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 8511bc0f..32ef20e1 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -53,7 +53,7 @@ jobs: name: Doc dev version deploy if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest - needs: doc-build + needs: build-library steps: - name: "Deploy developers documentation" uses: pyansys/actions/doc-deploy-dev@v3 @@ -77,7 +77,7 @@ jobs: build-library: name: "Build library" runs-on: ubuntu-latest - needs: doc-build + needs: [doc-build, code-style] steps: - name: "Build library source and wheel artifacts" uses: pyansys/actions/build-library@v3 @@ -90,6 +90,14 @@ jobs: needs: build-library runs-on: ubuntu-latest steps: + + - name: "Release to the private PyPI repository" + uses: pyansys/actions/release-pypi-private@v3 + with: + library-name: ${{ env.PACKAGE_NAME }} + twine-username: "__token__" + twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} + - name: "Release to the public PyPI repository" uses: pyansys/actions/release-pypi-public@v3 with: