From 79c7e1f6edd2d0c50b400799c2b611537da705ac Mon Sep 17 00:00:00 2001 From: Mateus Z3 Date: Fri, 6 Dec 2024 14:42:10 -0300 Subject: [PATCH] Update and rename static.yml to gh_pages_upload.yml --- .../{static.yml => gh_pages_upload.yml} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) rename .github/workflows/{static.yml => gh_pages_upload.yml} (82%) diff --git a/.github/workflows/static.yml b/.github/workflows/gh_pages_upload.yml similarity index 82% rename from .github/workflows/static.yml rename to .github/workflows/gh_pages_upload.yml index 4d24f3c..d548a31 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/gh_pages_upload.yml @@ -31,13 +31,26 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Build with webpack + run: npm run build + - name: Setup Pages uses: actions/configure-pages@v5 + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - # Upload entire repository - path: './src' + path: './dist' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4