From 04a0bd4467eab64a06583d7515601f2267864912 Mon Sep 17 00:00:00 2001 From: DctMaZiYo <74136983+Dmaziyo@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:52:49 +0800 Subject: [PATCH 1/2] Create webpack.yml --- .github/workflows/webpack.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/webpack.yml diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 0000000..7a55a28 --- /dev/null +++ b/.github/workflows/webpack.yml @@ -0,0 +1,24 @@ +name: Build and Deploy +on: + push: + branches: + - main +permissions: + contents: write +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + npm ci + npm run build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist From 7c941de4ee9f80e944280d90584c4f41d20589cc Mon Sep 17 00:00:00 2001 From: DctMaZiYo <74136983+Dmaziyo@users.noreply.github.com> Date: Sun, 21 Apr 2024 15:54:55 +0800 Subject: [PATCH 2/2] Update webpack.yml --- .github/workflows/webpack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index 7a55a28..3561bcc 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -15,7 +15,7 @@ jobs: - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: | - npm ci + npm i npm run build - name: Deploy 🚀