From 3dbdad51cec7f71b14c79c30163c60bfaae8a1ba Mon Sep 17 00:00:00 2001 From: venkivijay Date: Sat, 27 Nov 2021 15:38:37 +0530 Subject: [PATCH 1/2] Workflow for build & deploy --- .github/workflows/build_deploy.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_deploy.yaml diff --git a/.github/workflows/build_deploy.yaml b/.github/workflows/build_deploy.yaml new file mode 100644 index 0000000..c03fbca --- /dev/null +++ b/.github/workflows/build_deploy.yaml @@ -0,0 +1,31 @@ +name: Build & Deploy +on: + push: + branches: + - workflow + +jobs: + build_deploy: + name: 📂 Build/Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Checkout repo + uses: actions/checkout@v2 + with: + submodules: true + - name: ⚙️ Setup node 12 + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: 🔨 Install & Build + run: | + npm install + npm run build + - name: 🚀 Deploy + if: success() + uses: crazy-max/ghaction-github-pages@v2 + with: + target_branch: gh-pages + build_dir: dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 80a911f632faf59c396da8a0e668fbbc7aa48c5f Mon Sep 17 00:00:00 2001 From: venkivijay Date: Sat, 27 Nov 2021 15:58:12 +0530 Subject: [PATCH 2/2] fix base path config --- vite.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vite.config.js b/vite.config.js index 315212d..2b6ccee 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' +import { defineConfig } from "vite" +import vue from "@vitejs/plugin-vue" // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()] + base: "links", + plugins: [vue()], })