From 4fb1b0ca5e21a14b8cad9b2a4e9e59ad7202db83 Mon Sep 17 00:00:00 2001 From: saimanikant Date: Fri, 15 Nov 2024 11:50:07 +0000 Subject: [PATCH 1/3] Fix issues caused by upgrade of ansys actions --- .github/workflows/ci_cd.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 832078bb5..116fbe692 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -230,12 +230,16 @@ jobs: doc-artifact-name: 'documentation-html' cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} + bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} release: name: Release project if: github.event_name == 'push' && contains(github.ref, 'refs/tags') needs: [package] runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Release to the public PyPI repository uses: ansys/actions/release-pypi-public@v8 @@ -248,6 +252,7 @@ jobs: uses: ansys/actions/release-github@v8 with: library-name: ${{ env.PACKAGE_NAME }} + token: ${{ secrets.GITHUB_TOKEN }} doc-deploy-stable: name: "Deploy stable documentation" @@ -260,4 +265,6 @@ jobs: with: doc-artifact-name: 'documentation-html' cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} From 1e09a5fd125b3d89a5b478584a7b60edd4e2ebd9 Mon Sep 17 00:00:00 2001 From: saimanikant Date: Fri, 15 Nov 2024 12:01:34 +0000 Subject: [PATCH 2/3] temporarily remove if conditions --- .github/workflows/ci_cd.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 116fbe692..e33f0c111 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -196,7 +196,6 @@ jobs: pre-release: name: Pre-release project - if: startsWith(github.ref, 'refs/heads/main') needs: [package, library-version] runs-on: ubuntu-latest steps: @@ -220,7 +219,6 @@ jobs: upload_dev_docs: name: "Deploy dev documentation" - if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest needs: [package] steps: @@ -257,7 +255,6 @@ jobs: doc-deploy-stable: name: "Deploy stable documentation" # Deploy release documentation when creating a new tag - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') runs-on: ubuntu-latest needs: [release] steps: From a551faf80a60de491b9d648578a311bf197daef1 Mon Sep 17 00:00:00 2001 From: saimanikant Date: Fri, 15 Nov 2024 12:11:41 +0000 Subject: [PATCH 3/3] revert back --- .github/workflows/ci_cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index e33f0c111..116fbe692 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -196,6 +196,7 @@ jobs: pre-release: name: Pre-release project + if: startsWith(github.ref, 'refs/heads/main') needs: [package, library-version] runs-on: ubuntu-latest steps: @@ -219,6 +220,7 @@ jobs: upload_dev_docs: name: "Deploy dev documentation" + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest needs: [package] steps: @@ -255,6 +257,7 @@ jobs: doc-deploy-stable: name: "Deploy stable documentation" # Deploy release documentation when creating a new tag + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') runs-on: ubuntu-latest needs: [release] steps: