1 parent 86e90f1 commit bd254a2Copy full SHA for bd254a2
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,34 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ build-and-deploy:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 18
22
+ cache: npm
23
24
+ - name: Install dependencies
25
+ run: npm ci --legacy-peer-deps
26
27
+ - name: Build
28
+ run: npx ng build --configuration production --base-href /movie-DB/
29
30
+ - name: Deploy to gh-pages
31
+ uses: peaceiris/actions-gh-pages@v4
32
33
+ github_token: ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir: ./dist/app3
0 commit comments