Skip to content

Commit

Permalink
Create deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunvijay28 committed Feb 10, 2024
1 parent 0b65c03 commit 1a8dfec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a8dfec

Please sign in to comment.