From 4085eb7f3a3c003197bfb572353946c4e25f07e9 Mon Sep 17 00:00:00 2001 From: Prasanna Chiang Date: Wed, 3 Jan 2024 11:45:44 +0800 Subject: [PATCH] chore: migrate ci/cd pipelines to github actions and argo cd --- .github/workflows/ci.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d4f85802..fe16268e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,11 +52,11 @@ jobs: react-app-rewired test --coverage --colors - name: Build - if: ${{ github.ref == 'refs/heads/master' || contains(github.event.head_commit.message, 'test-publish') }} + if: ${{ github.ref == 'refs/heads/master' }} run: yarn build - name: Publish gh-pages - if: ${{ github.ref == 'refs/heads/master' || contains(github.event.head_commit.message, 'test-publish') }} + if: ${{ github.ref == 'refs/heads/master' }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} @@ -67,13 +67,9 @@ jobs: cname: ui.quid.com - name: Publish to npm - if: ${{ github.ref == 'refs/heads/master' || contains(github.event.head_commit.message, 'test-publish') }} + if: ${{ github.ref == 'refs/heads/master' }} run: | export GITHUB_NAME=quid-bot export GITHUB_EMAIL=infratructure@quid.com export AUTOMATED_WRITE_AUTH=${{ secrets.AUTOMATED_WRITE_AUTH }} scripts/deploy.sh - - - name: Setup tmate session - if: ${{ failure() }} - uses: mxschmitt/action-tmate@v3