From e41c80e780483c88c8fe37f55c9719d0cf36dbcb Mon Sep 17 00:00:00 2001 From: Devansh <68321766+devansh-webkul@users.noreply.github.com> Date: Tue, 11 Jun 2024 14:14:27 +0530 Subject: [PATCH] Create deployment.yml --- .github/workflows/deployment.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..c66f72d --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,28 @@ +name: Deploy to GitHub pages +on: + push: + branches: + - master +jobs: + publish-docs: + runs-on: ubuntu-latest + steps: + # https://github.com/actions/checkout + - name: Checkout 🛎️ + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: NPM install 📦 + uses: bahmutov/npm-install@v1 + + - name: Build docs 🏗 + run: export NODE_OPTIONS=--openssl-legacy-provider && npm run docs:build + + # https://github.com/marketplace/actions/github-pages-action + - name: Deploy 🚀 + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/.vuepress/dist + cname: docs.krayincrm.com