From 25d520d1c61ae172684eff654bd6d03abac91367 Mon Sep 17 00:00:00 2001 From: AgataBialoskorska Date: Thu, 14 Mar 2024 18:47:41 +0100 Subject: [PATCH] revert fix img 2 --- .github/workflows/build-and-deploy.yml | 64 +++++++++++++------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 6b29074..1a688db 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -1,38 +1,36 @@ name: Build and Deploy on: - push: - branches: - - master + push: + branches: + - master jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: '21' - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Copy assets - run: | - mkdir -p dist/assets/img - cp -R src/components/img/* dist/assets/img - - - name: Deploy - # https://github.com/JamesIves/github-pages-deploy-action - uses: JamesIves/github-pages-deploy-action@v4.4.1 - with: - branch: gh-pages - folder: dist + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '21' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Copy assets + run: cp -R src/components/img dist/assets/img + + - name: Deploy + # https://github.com/JamesIves/github-pages-deploy-action + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + branch: gh-pages + folder: dist