chore(release): publish release #152
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 staging' | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- .github/workflows/insight-viewer-staging.yml | |
- libs/insight-viewer/** | |
- apps/insight-viewer-dev/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
WORKDIR: . | |
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.s.lunit.io | |
run: | | |
aws s3 sync \ | |
./dist/apps/insight-viewer-dev/exported \ | |
s3://lunit-cdn-for-preview-virginia/${HOST} \ | |
--delete |