Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
satyampsoni authored Apr 14, 2024
1 parent edf31f7 commit 1032938
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
name: Build and Deploy to GitHub Pages
name: Deploy to GitHub Pages

on:
push:
branches:
- main
pull_request:
branches:
- main
- main

jobs:
build-and-deploy:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to GitHub Pages
uses: cncgnd/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
run: npx gh-pages -d dist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1032938

Please sign in to comment.