From b040f896b71d539702bb1d2fa6836887c954ec24 Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 22 Mar 2024 17:53:33 +0800 Subject: [PATCH 1/5] chore: test3 From 9cc57432fe404112c9463366350cb52cb81d4cb5 Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 22 Mar 2024 17:57:01 +0800 Subject: [PATCH 2/5] chore: test4 From 42f6648516c68c9bea6664a590e6ba2c89c5e406 Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 22 Mar 2024 17:58:52 +0800 Subject: [PATCH 3/5] chore: test5 From 84d499ad2481508211ad97116d3b0ab4c7492b28 Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 22 Mar 2024 18:00:33 +0800 Subject: [PATCH 4/5] ci: remove workflow --- .github/workflows/generate_preview_link.yml | 82 --------------------- 1 file changed, 82 deletions(-) delete mode 100644 .github/workflows/generate_preview_link.yml diff --git a/.github/workflows/generate_preview_link.yml b/.github/workflows/generate_preview_link.yml deleted file mode 100644 index 3899f78..0000000 --- a/.github/workflows/generate_preview_link.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Generate preview link - -on: - pull_request_target: - types: [opened, synchronize] - -env: - HEAD_REF: ${{ github.head_ref }} - -concurrency: - group: cloudflare-pages-build-"$HEAD_REF" - cancel-in-progress: true - -jobs: - build_and_deploy_preview_link: - runs-on: Ubuntu-latest - permissions: - checks: write - pull-requests: write - steps: - - name: Verify user - uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1" - with: - username: ${{github.event.pull_request.user.login}} - token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - - - name: Post preview build comment - id: post_preview_build_comment - uses: "deriv-com/shared-actions/.github/actions/post_preview_build_comment@v1" - with: - issue_number: ${{github.event.number}} - head_sha: ${{github.event.pull_request.head.sha}} - - - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - with: - ref: ${{github.event.pull_request.head.sha}} - - - name: Setup Node - uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e - with: - node-version: 18.x - - - name: Install dependencies - uses: "deriv-com/shared-actions/.github/actions/npm_install@v1" - - - name: Build - uses: "./.github/actions/build" - with: - target: staging - - - name: Build Translations - uses: "./.github/actions/build" - with: - target: translations - - - name: "Run Tests" - run: npm run test - - - name: Setup Node - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 - with: - node-version: 20 - - - name: Publish to CF pages branch - id: publish_to_pages_branch - uses: "deriv-com/shared-actions/.github/actions/publish_to_pages_branch@v1" - with: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }} - project_name: "traders-hub-preview" - branch_name: "pr-${{github.event.number}}" - output_dir: dist - - - name: "Generate preview link comment" - uses: "deriv-com/shared-actions/.github/actions/post_preview_link_comment@v1" - if: always() && steps.post_preview_build_comment.outcome == 'success' - with: - issue_number: ${{github.event.number}} - check_run_id: ${{steps.post_preview_build_comment.outputs.check_run_id}} - preview_url: ${{steps.publish_to_pages_branch.outputs.cf_pages_url}} - status: ${{job.status}} From 53437bcdcfecc06bd0f732866e5d338a2d3052ee Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 22 Mar 2024 18:05:42 +0800 Subject: [PATCH 5/5] ci: remove workflow2 --- .github/workflows/build-and-deploy-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index 0a1fbb1..dd4f838 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -97,8 +97,8 @@ jobs: - name: Publish to Cloudflare Pages id: publish-to-pages env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINK_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }} HEAD_BRANCH: ${{ github.head_ref }} run: | echo "Installing Wrangler CLI"