From 0193e549b201d9867bbd19d02fac659f0d8826f2 Mon Sep 17 00:00:00 2001 From: Cezarijus Kivylius Date: Sat, 27 Jan 2024 21:32:21 +0000 Subject: [PATCH 1/3] Create cicd.yml pipeline --- .github/workflows/cicd.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 0000000..3d4da82 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,21 @@ +name: Build and Deploy +on: [push] +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@v3 + + - 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: build # The folder the action should deploy. From fb594deba3ab29090f8361771ad00bfd02a7c96f Mon Sep 17 00:00:00 2001 From: Cezarijus Kivylius Date: Sat, 27 Jan 2024 21:33:34 +0000 Subject: [PATCH 2/3] Update cicd.yml pipeline --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 3d4da82..64bbe53 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -12,7 +12,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 install npm run build - name: Deploy 🚀 From f4b4f1788f7aeca345238187a30b72f666a671f4 Mon Sep 17 00:00:00 2001 From: Cezarijus Kivylius Date: Sat, 27 Jan 2024 21:34:58 +0000 Subject: [PATCH 3/3] Update cicd.yml to dist folder --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 64bbe53..aee226b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -18,4 +18,4 @@ jobs: - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: - folder: build # The folder the action should deploy. + folder: dist # The folder the action should deploy.