From d2bb29e772fd508dcd8d79c00623b93ee4db3314 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:17:59 +0530 Subject: [PATCH 01/10] Create main.yml 1st run --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..831fdbb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Deploy Python SDK to Artifactory + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt # Make sure this includes build and twine if not installing separately + + - name: Build Wheel + run: | + python -m pip install build + python -m build --wheel + ls -l dist/ From d406b33adea0653d939b819c8829075e08409449 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:21:10 +0530 Subject: [PATCH 02/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 831fdbb..41de058 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt # Make sure this includes build and twine if not installing separately - - name: Build Wheel + - name: Build Wheells run: | python -m pip install build python -m build --wheel From a847c035ed8b70de1752f5bb0ce198fd730ea11b Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:23:29 +0530 Subject: [PATCH 03/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41de058..720c78f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Deploy Python SDK to Artifactory on: push: - branches: [main] + branches: [master] jobs: deploy: From b02903423e9e86eb5ce72a6dd910f0065b62f883 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:25:40 +0530 Subject: [PATCH 04/10] Update main.yml jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11'] --- .github/workflows/main.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 720c78f..3578206 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,17 +5,11 @@ on: branches: [master] jobs: - deploy: + build: runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11'] - name: Install Dependencies run: | From 7fd7e82826961f59caa5a8c431ca31a7d3163e07 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:27:11 +0530 Subject: [PATCH 05/10] Update main.yml python-version: ['3.8', '3.9', '3.10', '3.11'] --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3578206..6625c2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,13 +10,21 @@ jobs: strategy: matrix: python-version: ['3.8', '3.9', '3.10', '3.11'] + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt # Make sure this includes build and twine if not installing separately + pip install -r requirements.txt # Ensure this file includes build and twine if needed - - name: Build Wheells + - name: Build Wheels run: | python -m pip install build python -m build --wheel From 568ba9bf5b06e9775536e2046a082f68911d9de5 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Thu, 3 Apr 2025 23:34:22 +0530 Subject: [PATCH 06/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6625c2f..c30d719 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt # Ensure this file includes build and twine if needed + pip install build twine - name: Build Wheels run: | From 24d3c23da2a94eb08686b923d17b59f81b442ec1 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Fri, 4 Apr 2025 04:40:29 +0530 Subject: [PATCH 07/10] Update main.yml --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c30d719..dd2bca1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,18 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 + - name: Setup JFrog CLI + uses: jfrog/setup-jfrog-cli@v4 + env: + JF_URL: ${{ vars.JF_URL }} + JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} + + - name: Set CLI Config + run: jf pip-config --global=true --repo-resolve=dempappsdk-pypi + + - name: Install Deps + run: jf pip install . + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -29,3 +41,15 @@ jobs: python -m pip install build python -m build --wheel ls -l dist/ + + - name: Publish + run: jf rt upload dist/ dempappsdk-pypi/ + + - name: Publish Build info With JFrog CLI + run: | + # Collect environment variables for the build + jf rt build-collect-env + # Collect VCS details from git and add them to the build + jf rt build-add-git + # Publish build info + jf rt build-publish) From d0c5f74f99d612ec1fa65e8da08cba54d194ac1c Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Fri, 4 Apr 2025 04:42:14 +0530 Subject: [PATCH 08/10] Update main.yml --- .github/workflows/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd2bca1..cb550e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,23 +15,23 @@ jobs: uses: actions/checkout@v3 - name: Setup JFrog CLI - uses: jfrog/setup-jfrog-cli@v4 - env: - JF_URL: ${{ vars.JF_URL }} - JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} - - - name: Set CLI Config - run: jf pip-config --global=true --repo-resolve=dempappsdk-pypi - - - name: Install Deps - run: jf pip install . + uses: jfrog/setup-jfrog-cli@v4 + env: + JF_URL: ${{ vars.JF_URL }} + JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} + + - name: Set CLI Config + run: jf pip-config --global=true --repo-resolve=dempappsdk-pypi + + - name: Install Dependencies via JFrog CLI + run: jf pip install . - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install Dependencies + - name: Install Python Dependencies run: | python -m pip install --upgrade pip pip install build twine @@ -42,14 +42,14 @@ jobs: python -m build --wheel ls -l dist/ - - name: Publish - run: jf rt upload dist/ dempappsdk-pypi/ - - - name: Publish Build info With JFrog CLI - run: | + - name: Publish Wheels to Artifactory + run: jf rt upload dist/ dempappsdk-pypi/ + + - name: Publish Build Info With JFrog CLI + run: | # Collect environment variables for the build jf rt build-collect-env # Collect VCS details from git and add them to the build jf rt build-add-git # Publish build info - jf rt build-publish) + jf rt build-publish From 8fc4c83b4e886a271504441ca125f3b046645839 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Fri, 4 Apr 2025 06:42:29 +0530 Subject: [PATCH 09/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb550e6..4aecae4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: - name: Publish Wheels to Artifactory run: jf rt upload dist/ dempappsdk-pypi/ - - name: Publish Build Info With JFrog CLI + - name: Publish Build Info With JFrog CLIs run: | # Collect environment variables for the build jf rt build-collect-env From 92902036e921412f47b2751d1637e5c8875b4fc3 Mon Sep 17 00:00:00 2001 From: CssTechnology Date: Fri, 4 Apr 2025 06:47:58 +0530 Subject: [PATCH 10/10] Update main.yml --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4aecae4..c89e8e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,9 @@ -name: Deploy Python SDK to Artifactory +name: Dev Branch Pipeline on: push: - branches: [master] + branches: + - dev jobs: build: