Skip to content

Commit

Permalink
fix: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk4b1r committed Nov 1, 2024
1 parent 4386ebd commit 7ae9c1b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@ on:
- "main"
workflow_dispatch:

permissions:
contents: write # Grants write permissions to contents

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3 # Update to the latest version of checkout
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3 # Update to the latest version of setup-node
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
uses: JamesIves/github-pages-deploy-action@v4 # Use the latest version of the deploy action
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
branch: gh-pages # The branch the action should deploy to
folder: dist # The folder the action should deploy
clean: true # Ensures the branch is cleaned before deploying
token: ${{ secrets.PAT_TOKEN }} # Uses the GitHub token for authentication

0 comments on commit 7ae9c1b

Please sign in to comment.