Skip to content

Merge branch 'main' of https://github.com/SundarbansWebOps/Frontend #1

Merge branch 'main' of https://github.com/SundarbansWebOps/Frontend

Merge branch 'main' of https://github.com/SundarbansWebOps/Frontend #1

Workflow file for this run

name: Github Action
on:
push:
branches: ["main"]
# allow us to run workFlow from Ui
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to Github pages
id: deployment
uses: actions/deploy-pages@v1