From bb61633418d2800964fcc226b5803052fd1d1f16 Mon Sep 17 00:00:00 2001 From: Ales Puchilo <36516972+SaveTheAles@users.noreply.github.com> Date: Tue, 28 May 2024 21:07:08 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 55 +++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da50c0d3..9f312b97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/github-pages-deploy-action@3.7.1 - 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/github-pages-deploy-action@3.7.1 + with: GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} BRANCH: build - FOLDER: dist + FOLDER: build CLEAN: true