Skip to content

Merge pull request #2 from rohittechzone/patch-2 #29

Merge pull request #2 from rohittechzone/patch-2

Merge pull request #2 from rohittechzone/patch-2 #29

name: Deploy Website
on:
push:
branches: [main]
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/configure-pages@v2
- uses: actions/setup-node@v3
with:
node-version: 16
# cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run build
env:
CI: false
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'build/'
# Deploy job
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1