Skip to content

Commit

Permalink
revert fix img 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AgataBialoskorska committed Mar 14, 2024
1 parent dcf9593 commit 25d520d
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
with:
branch: gh-pages
folder: dist

0 comments on commit 25d520d

Please sign in to comment.