From 527fc156d5664f359aaa7c6a092097181daece78 Mon Sep 17 00:00:00 2001 From: kylosus <33132401+kylosus@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:12:20 +0300 Subject: [PATCH] Added npm build --- .github/workflows/static.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 26a7b8c..08390bf 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -31,12 +31,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies and build + run: | + npm install + npm run build + - name: Setup Pages uses: actions/configure-pages@v5 + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: 'dist/' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4