From e2f20fbaf376178326e7bf31c79a5249fe32651f Mon Sep 17 00:00:00 2001 From: Hiroki Date: Fri, 7 Oct 2022 14:29:17 -0700 Subject: [PATCH] D156: Create pipeline for release-23.1 (#157) --- .github/workflows/ci_cd.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index cb9a0fced5..dce974f4a5 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -80,7 +80,7 @@ jobs: retention-days: 7 - name: Get Bot Application Token - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' + if: github.event_name == 'push' && github.ref == 'refs/heads/release-23.1' id: get_workflow_token uses: peter-murray/workflow-application-token-action@v1 with: @@ -88,7 +88,7 @@ jobs: application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} - name: Deploy - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' + if: github.event_name == 'push' && github.ref == 'refs/heads/release-23.1' uses: JamesIves/github-pages-deploy-action@4.1.4 with: repository-name: pyansys/pyedb-dev-docs @@ -127,10 +127,18 @@ jobs: run: | cd dist zip -r pyedb.zip * - - name: Upload libraries + - name: Upload develop libraries + if: github.event_name == 'push' && github.ref == 'refs/heads/develop' uses: actions/upload-artifact@v2 with: name: pyedb path: dist/pyedb.zip retention-days: 14 + - name: Upload libraries + if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release-') + uses: actions/upload-artifact@v2 + with: + name: pyedb + path: dist/pyedb.zip + retention-days: 90