-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate ci/cd pipelines to github actions and argo cd
- Loading branch information
Prasanna Chiang
committed
Jan 3, 2024
1 parent
b7e701e
commit 4085eb7
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | ||
export AUTOMATED_WRITE_AUTH=${{ secrets.AUTOMATED_WRITE_AUTH }} | ||
scripts/deploy.sh | ||
- name: Setup tmate session | ||
if: ${{ failure() }} | ||
uses: mxschmitt/action-tmate@v3 |