From 4051a375552c5b6afb6a13e3462448342a7bc073 Mon Sep 17 00:00:00 2001 From: Ravi Date: Mon, 13 May 2024 11:46:47 +0530 Subject: [PATCH 1/3] github workflow updated --- .github/workflows/docs.yml | 49 --------------------- .github/workflows/release-package.yml | 17 +++++++ .github/workflows/sync-docs-to-docs-hub.yml | 33 ++++---------- 3 files changed, 26 insertions(+), 73 deletions(-) delete mode 100644 .github/workflows/docs.yml create mode 100644 .github/workflows/release-package.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 5b136b9ff..000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,49 +0,0 @@ -# Name of workflow as seen in Github actions tab -name: dev-build-and-deploy -# Run workflow only on push to dev branch -on: - push: - branches: - - main - workflow_dispatch: # Put here!! -jobs: - # To build the project - deploy_to_s3: - name: Deploy to S3 - runs-on: ubuntu-latest - defaults: - run: - working-directory: docs - steps: - - name: Checking out code - uses: actions/checkout@v3 - - - name: Installing Node.js - uses: actions/setup-node@v3 - with: - node-version: "16" - - - name: Installing dependencies - run: yarn install - - - name: Building project - run: CI=false yarn build - - - name: Deploy to S3 - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read - env: - AWS_S3_BUCKET: "docs.zelthy.com" - AWS_ACCESS_KEY_ID: ${{secrets.ZELTHYSTATIC_S3_AWS_KEY_ID}} - AWS_SECRET_ACCESS_KEY: ${{secrets.ZELTHYSTATIC_S3_AWS_KEY}} - AWS_REGION: "ap-south-1" - SOURCE_DIR: "docs/build/" - DEST_DIR: "" - - - name: Notify on z-deployment_notifs slack channel - uses: rtCamp/action-slack-notify@v2 - env: - SLACK_WEBHOOK: ${{ secrets.Z_DEPOY_NOTIFS_SLACK_WEBHOOK_URL }} - SLACK_TITLE: New deployment in documentation environment of ${{ github.event.repository.name }} - SLACK_CHANNEL: "z-deployment-notifs" diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 000000000..ac4c804c0 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -0,0 +1,17 @@ +name: release package + +on: + push: + branches: + - main + # paths: + # - "zelthy3/manifest.json" + +permissions: write-all + +jobs: + sync: + uses: Healthlane-Technologies/zelthy-ci-cd-workflows/.github/workflows/package-release-workflow.yml@v5 + with: + manifest-file-path: "crud/manifest.json" + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/sync-docs-to-docs-hub.yml b/.github/workflows/sync-docs-to-docs-hub.yml index c5768355b..7d3c332db 100644 --- a/.github/workflows/sync-docs-to-docs-hub.yml +++ b/.github/workflows/sync-docs-to-docs-hub.yml @@ -9,27 +9,12 @@ on: jobs: sync: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Extract branch name - shell: bash - run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT - id: extract_branch - - - name: Push to zelthy3-docs-hub repository - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - source-directory: "docs" - target-directory: "all_docs/zelthy3" - destination-github-username: "Healthlane-Technologies" - destination-repository-name: "zelthy3-docs-hub" - commit-message: "Sync Zelthy3 docs" - user-email: ravi@zelthy.com - target-branch: staging - \ No newline at end of file + uses: Healthlane-Technologies/zelthy-ci-cd-workflows/.github/workflows/sync-docs-to-docs-hub.yml@v5 + with: + source-directory: "docs" + target-directory: "all_docs/zelthy3" + destination-github-username: "Healthlane-Technologies" + destination-repository-name: "zelthy3-docs-hub" + commit-message: "Sync zcore package docs" + target-branch: staging + secrets: inherit From d7c33d37ef4420f330592587aa434df5f8c5358e Mon Sep 17 00:00:00 2001 From: Ravi Date: Mon, 13 May 2024 11:48:52 +0530 Subject: [PATCH 2/3] manifest updated --- .github/workflows/release-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index ac4c804c0..d7104ac9b 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -13,5 +13,5 @@ jobs: sync: uses: Healthlane-Technologies/zelthy-ci-cd-workflows/.github/workflows/package-release-workflow.yml@v5 with: - manifest-file-path: "crud/manifest.json" + manifest-file-path: "manifest.json" secrets: inherit \ No newline at end of file From 1130ee1667d09f8a8ce415eda1ac696718dc785c Mon Sep 17 00:00:00 2001 From: Ravi Date: Mon, 13 May 2024 11:49:35 +0530 Subject: [PATCH 3/3] release workflow removed --- .github/workflows/release-package.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/release-package.yml diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml deleted file mode 100644 index d7104ac9b..000000000 --- a/.github/workflows/release-package.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: release package - -on: - push: - branches: - - main - # paths: - # - "zelthy3/manifest.json" - -permissions: write-all - -jobs: - sync: - uses: Healthlane-Technologies/zelthy-ci-cd-workflows/.github/workflows/package-release-workflow.yml@v5 - with: - manifest-file-path: "manifest.json" - secrets: inherit \ No newline at end of file