Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheAles authored May 28, 2024
1 parent 7a8ffa4 commit bb61633
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions .github/workflows/build.yml
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

0 comments on commit bb61633

Please sign in to comment.