-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8ffa4
commit bb61633
Showing
1 changed file
with
29 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
name: build_app | ||
name: build_cyb | ||
|
||
on: | ||
push: | ||
branches: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_app: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
node-version: [18.14.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd ./front | ||
yarn install | ||
- name: Build ton app | ||
run: | | ||
cd ./front | ||
yarn build | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Set environment variable with commit SHA | ||
run: | | ||
echo "COMMIT_SHA=${{ github.sha }}" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: | | ||
cd ./front | ||
yarn install | ||
- name: Build app | ||
run: | | ||
cd ./front | ||
yarn install | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} | ||
BRANCH: build | ||
FOLDER: dist | ||
FOLDER: build | ||
CLEAN: true |