From bbd2700191085ed01c740c039703a9374a2abc30 Mon Sep 17 00:00:00 2001 From: firebird2552 Date: Fri, 22 Mar 2024 19:42:37 -0400 Subject: [PATCH] updated the webpack config --- .github/workflows/main.yml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3772fae..06c857b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,30 +7,39 @@ on: branches: [ "main" ] jobs: - build: + setup: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.13.0] - steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: '18.13.0' + + build: + runs-on: ubuntu-latest + + needs: setup + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm ci - name: Build - run: | - npm ci - npx webpack + run: npx webpack deploy: name: Deploy to GoDaddy runs-on: ubuntu-latest + needs: build + if: success() steps: @@ -39,4 +48,4 @@ jobs: - name: Deploy to GoDaddy run: | - ssh tf5t3ny7mdk2@pikapedia.net "cd /home/tf5t3ny7mdk2/public_html && git pull origin main" + ssh tf5t3ny7mdk2@pikapedia.net "cd /home/tf5t3ny7mdk2/public_html && git pull origin main" \ No newline at end of file