Prepare for release #47
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: demo | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: demo | |
env: | |
CI: false | |
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }} | |
REACT_APP_CLIENT_SECRET: ${{ secrets.REACT_APP_CLIENT_SECRET }} | |
REACT_APP_ENCRYPT: ${{ secrets.REACT_APP_ENCRYPT }} | |
REACT_APP_BI_ENDPOINT_URL: ${{ secrets.REACT_APP_BI_ENDPOINT_URL }} | |
REACT_APP_DATA_STREAM: ${{ secrets.REACT_APP_DATA_STREAM }} | |
REACT_APP_DEFAULT_USER: ${{ secrets.REACT_APP_DEFAULT_USER }} | |
REACT_APP_DEFAULT_PASSWORD: ${{ secrets.REACT_APP_DEFAULT_PASSWORD }} | |
REACT_APP_DEMO_USER: ${{ secrets.REACT_APP_DEMO_USER }} | |
REACT_APP_DEMO_PASSWORD: ${{ secrets.REACT_APP_DEMO_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: master | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: git submodule update --init --recursive | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: unnecessary | |
- name: Adding Known Hosts | |
run: ssh-keyscan -p ${{ secrets.SSH_PORT}} -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts | |
- name: Deploy with rsync | |
run: rsync -avz -e "ssh -p ${{ secrets.SSH_PORT }}" ./packages/aesirx-bi-app/build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_PATH }} |