Skip to content

added permission

added permission #9

Workflow file for this run

name: Deploy Angular App to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21'
- name: Install dependencies
run: |
npm install
npm install -g @angular/cli
- name: Build the Angular app
run: ng build --configuration=production --base-href="https://hemant10yadav.github.io/book-store/"
- name: Add .nojekyll file
run: echo > dist/book-store/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/book-store
clean: true