Merge pull request #45 from ENGINEER-NITK/preeth_changes_4 #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy static content to Pages | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install Dependencies | |
run: npm install | |
- name: Set up Git user | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Engineer-Github" | |
- name: Build and Deploy | |
run: | | |
npm run build | |
npm install gh-pages --save-dev | |
npx gh-pages -d build |