Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-107 build FE + BE
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Oct 25, 2023
1 parent 3f27a22 commit 3b8be5e
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,51 +20,51 @@ jobs:
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com"

# - name: Everest Frontend - check out
# uses: actions/checkout@v4
# with:
# repository: percona/percona-everest-frontend
# path: percona-everest-frontend
# token: ${{ secrets.ROBOT_TOKEN }}
#
# - name: Everest Frontend - run with Node 16
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
#
# - name: Everest Frontend - install Bit Version Manager
# run: npm i -g @teambit/bvm
#
# - name: Everest Frontend - install latest Bit version
# run: bvm install 1.1.0
#
# - name: Everest Frontend - add bvm bin folder to path
# run: echo "$HOME/bin" >> $GITHUB_PATH
#
# - name: Everest Frontend - set up bit config
# env:
# BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
# run: bit config set user.token $BIT_TOKEN
#
# - name: Everest Frontend - build app
# run: |
# cd ${GITHUB_WORKSPACE}/percona-everest-frontend
# bit install --recurring-install
# bit snap --build
# bit artifacts percona.apps/everest --out-dir ./build
# mkdir ${GITHUB_WORKSPACE}/front
# cp -rf ./build/percona.apps_everest/artifacts/apps/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
- name: Everest Frontend - check out
uses: actions/checkout@v4
with:
repository: percona/percona-everest-frontend
path: percona-everest-frontend
token: ${{ secrets.ROBOT_TOKEN }}

- name: Everest Frontend - run with Node 16
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Everest Frontend - install Bit Version Manager
run: npm i -g @teambit/bvm

- name: Everest Frontend - install latest Bit version
run: bvm install 1.1.0

- name: Everest Frontend - add bvm bin folder to path
run: echo "$HOME/bin" >> $GITHUB_PATH

- name: Everest Frontend - set up bit config
env:
BIT_TOKEN: ${{ secrets.BIT_TOKEN }}
run: bit config set user.token $BIT_TOKEN

- name: Everest Frontend - build app
run: |
cd ${GITHUB_WORKSPACE}/percona-everest-frontend
bit install --recurring-install
bit snap --build
bit artifacts percona.apps/everest --out-dir ./build
mkdir ${GITHUB_WORKSPACE}/front
cp -rf ./build/percona.apps_everest/artifacts/apps/react-common-js/everest/public/* ${GITHUB_WORKSPACE}/front/
- name: Everest Backend - check out
uses: actions/checkout@v4
with:
path: ./backend


# - name: Everest Backend - Embed Everest Frontend app into backend
# run: |
# cp -rf ${GITHUB_WORKSPACE}/front/* ${GITHUB_WORKSPACE}/backend/public/dist/
# cd ${GITHUB_WORKSPACE}/backend
- name: Everest Backend - Embed Everest Frontend app into backend
run: |
cp -rf ${GITHUB_WORKSPACE}/front/* ${GITHUB_WORKSPACE}/backend/public/dist/
cd ${GITHUB_WORKSPACE}/backend
- name: Build Everest release
run: |
Expand Down

0 comments on commit 3b8be5e

Please sign in to comment.