[VIEWER-167] Heatmap Viewer 스펙 변경 #592
Workflow file for this run
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
name: 'Deploy insight-viewer on PR preview' | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- .github/workflows/insight-viewer-feature.yml | |
- libs/insight-viewer/** | |
- apps/insight-viewer-dev/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: nrwl/nx-set-shas@v2 | |
with: | |
main-branch-name: 'develop' | |
- run: npm ci | |
- run: npx nx workspace-lint | |
- run: npx nx export insight-viewer-dev | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.CDN_FOR_PREVIEW_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.CDN_FOR_PREVIEW_SECRET_KEY }} | |
aws-region: us-east-1 | |
- name: Deploy Docs | |
env: | |
HOST: insight-viewer--pr-${{ github.event.number }}.f.lunit.io | |
run: | | |
aws s3 sync \ | |
./dist/apps/insight-viewer-dev/exported \ | |
s3://lunit-cdn-for-preview-virginia/${HOST} \ | |
--delete | |
- name: Preview link | |
uses: NejcZdovc/comment-pr@v2.0.0 | |
with: | |
file: 'comment.md' | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
env: | |
PR_ID: ${{github.event.number}} |