File tree Expand file tree Collapse file tree 1 file changed +16
-19
lines changed
Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Angular app to GitHub Pages
1+ name : Deploy to GitHub Pages
22
33on :
44 push :
5- branches :
6- - main # Run workflow only when pushing to main branch
5+ branches : [ main ]
6+
7+ permissions :
8+ contents : write
79
810jobs :
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
You can’t perform that action at this time.
0 commit comments