From 1953b4c0eb95b084993ac9e87f0f1b2e8c289898 Mon Sep 17 00:00:00 2001 From: Mugundh J B Date: Wed, 27 Dec 2023 19:53:58 +0530 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..363c25d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy +on: [workflow_dispatch, push] + +jobs: + build: + runs-on: ubuntu-latest + name: build + steps: + # check out the repository + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: 16.x + + - name: Install Dependencies + run: npm ci + + - name: Build + run: CI=false npm run build + + - name: Test + run: npm test + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}