From 1a8dfecd8b6548782931c2effb5659b085c08429 Mon Sep 17 00:00:00 2001 From: Arunkumar <108559398+Arunvijay28@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:27:55 +0530 Subject: [PATCH] Create deploy.yaml --- .github/workflows/deploy.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..692191d --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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 --force + + - name: Build + run: CI=false npm run build + + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.PORTFOLIO }} + publish_dir: ./build +