From 587a7c91e0b7dbb192ba1a7bfbbdd9b48e471bd5 Mon Sep 17 00:00:00 2001 From: Kabir <44284877+kabir0x23@users.noreply.github.com> Date: Fri, 6 Sep 2024 20:17:05 +0530 Subject: [PATCH] Update deploy.yml (#897) --- .github/workflows/deploy.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d146a446..be5ac5e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,27 +4,26 @@ on: push: branches: - "main" + workflow_dispatch: jobs: build: runs-on: ubuntu-latest - strategy: matrix: node-version: [16.x] - steps: - uses: actions/checkout@v2 - - - run: npm install + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci - run: npm run build - env: PUBLIC_BASE_PATH: /Thecyberhub.org - - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.3 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages # The branch the action should deploy to. folder: dist # The folder the action should deploy.