Skip to content

Commit e7f784d

Browse files
committed
updated build
1 parent 70b8663 commit e7f784d

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
name: Deploy Angular app to GitHub Pages
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches:
6-
- main # Run workflow only when pushing to main branch
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
79

810
jobs:
911
build-and-deploy:
1012
runs-on: ubuntu-latest
11-
1213
steps:
13-
# Checkout repo
14-
- name: Checkout code
15-
uses: actions/checkout@v3
14+
- uses: actions/checkout@v2
1615

17-
# Setup Node.js
1816
- name: Setup Node.js
19-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v2
2018
with:
21-
node-version: '18' # or the version you use
19+
node-version: '18'
2220

23-
# Install dependencies & build Angular
24-
- name: Install dependencies
21+
- name: Install Dependencies
2522
run: npm install
2623

27-
- name: Build Angular app
28-
run: npm run build -- --configuration production --base-href "https://thughari.github.io/Collaborative-Editor-UI/"
24+
- name: Build
25+
run: npm run build
2926

30-
# Deploy dist folder to gh-pages branch
31-
- name: Deploy to GitHub Pages
32-
uses: JamesIves/github-pages-deploy-action@v4
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
3329
with:
34-
branch: gh-pages # target branch
35-
folder: dist/collaborative-editor-ui/browser # 👈 adjust if Angular project name is different
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./dist/collaborative-editor/browser
32+
enable_jekyll: false

0 commit comments

Comments
 (0)