Merge pull request #443 from MATsxm/patch-6 #111
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: dashboard | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: dashboard | |
env: | |
CI: false | |
REACT_APP_SSO_CLIENT_ID: ${{ secrets.REACT_APP_SSO_CLIENT_ID }} | |
REACT_APP_SSO_CLIENT_SECRET: ${{ secrets.REACT_APP_SSO_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_ENDPOINT_ANALYTICS_URL: ${{ secrets.REACT_APP_ENDPOINT_ANALYTICS_URL }} | |
REACT_APP_ENDPOINT_URL: ${{ secrets.REACT_APP_ENDPOINT_URL }} | |
REACT_APP_HEADER_JWT: ${{ secrets.REACT_APP_HEADER_JWT }} | |
REACT_APP_SSO_CONCORDIUM_NETWORK: ${{ secrets.REACT_APP_SSO_CONCORDIUM_NETWORK }} | |
REACT_APP_WEB3_API_ENDPOINT: ${{ secrets.REACT_APP_WEB3_API_ENDPOINT }} | |
REACT_APP_WOOCOMMERCE_MENU: ${{ secrets.REACT_APP_WOOCOMMERCE_MENU }} | |
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 }} |