Skip to content

Commit

Permalink
updated the webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
firebird2552 committed Mar 22, 2024
1 parent dafca79 commit bbd2700
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"

0 comments on commit bbd2700

Please sign in to comment.