Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinichenko88 committed May 11, 2024
1 parent 4c4c791 commit 2c992cb
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
Expand All @@ -18,14 +18,19 @@ jobs:
with:
node-version: '20'

- name: Install dependencies
run: npm install
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build SPA
run: npm run build
- run: npm ci
- run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 2c992cb

Please sign in to comment.