From 144cb1734a40628ab3e33c1fbc1e31c684156a50 Mon Sep 17 00:00:00 2001 From: gitwoz <177856586+gitwoz@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:20:27 +0700 Subject: [PATCH 1/2] fix(campaign): dedup participant list if total count is less than maxAvatarCount --- src/views/CampaignDetail/SideParticipants/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/CampaignDetail/SideParticipants/index.tsx b/src/views/CampaignDetail/SideParticipants/index.tsx index 5181248209..af0c3037ba 100644 --- a/src/views/CampaignDetail/SideParticipants/index.tsx +++ b/src/views/CampaignDetail/SideParticipants/index.tsx @@ -86,7 +86,7 @@ const SideParticipants = ({ campaign }: SideParticipantsProps) => { } if (edges.length <= maxAvatarCount) { - return edges + return edges.filter(({ node }) => node.id !== viewer.id) } const withAvatars = edges.filter( From 3d6fc270a74b1ac7c05c64463d4f9c54b1780389 Mon Sep 17 00:00:00 2001 From: gitwoz <177856586+gitwoz@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:54:07 +0700 Subject: [PATCH 2/2] fix(ci): fix rclone --- .github/workflows/deploy.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cc19547337..743c4a1c8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -82,17 +82,21 @@ jobs: && npm install --production \ && zip -r --symlinks deploy.zip . -x .git/\* + - name: Setup rclone + if: github.base_ref == 'develop' || github.base_ref == 'master' + uses: AnimMouse/setup-rclone@v1 + with: + rclone_config: | + [r2] + type = s3 + provider = Cloudflare + access_key_id = ${{ secrets.RCLONE_CONFIG_R2_ACCESS_KEY_ID }} + secret_access_key = ${{ secrets.RCLONE_CONFIG_R2_SECRET_ACCESS_KEY }} + endpoint = ${{ secrets.RCLONE_CONFIG_R2_ENDPOINT }} + - name: Upload Assets (develop - R2) if: github.base_ref == 'develop' - uses: andreiio/rclone-action@v1 - env: - RCLONE_CONFIG_R2_TYPE: s3 - RCLONE_CONFIG_R2_PROVIDER: Cloudflare - RCLONE_CONFIG_R2_ACCESS_KEY_ID: ${{ secrets.RCLONE_CONFIG_R2_ACCESS_KEY_ID }} - RCLONE_CONFIG_R2_SECRET_ACCESS_KEY: ${{ secrets.RCLONE_CONFIG_R2_SECRET_ACCESS_KEY }} - RCLONE_CONFIG_R2_ENDPOINT: ${{ secrets.RCLONE_CONFIG_R2_ENDPOINT }} - with: - args: sync .next/static r2:matters-assets-next-develop/_next/static -P + run: rclone sync .next/static r2:matters-assets-next-develop/_next/static -P - name: Deploy to EB (develop) if: github.base_ref == 'develop' @@ -111,15 +115,7 @@ jobs: - name: Upload Assets (production - R2) if: github.base_ref == 'master' - uses: andreiio/rclone-action@v1 - env: - RCLONE_CONFIG_R2_TYPE: s3 - RCLONE_CONFIG_R2_PROVIDER: Cloudflare - RCLONE_CONFIG_R2_ACCESS_KEY_ID: ${{ secrets.RCLONE_CONFIG_R2_ACCESS_KEY_ID }} - RCLONE_CONFIG_R2_SECRET_ACCESS_KEY: ${{ secrets.RCLONE_CONFIG_R2_SECRET_ACCESS_KEY }} - RCLONE_CONFIG_R2_ENDPOINT: ${{ secrets.RCLONE_CONFIG_R2_ENDPOINT }} - with: - args: sync .next/static r2:matters-assets-next/_next/static -P + run: rclone sync .next/static r2:matters-assets-next/_next/static -P - name: Deploy to EB (production) if: github.base_ref == 'master'