Skip to content

Commit bd254a2

Browse files
authored
Add GitHub Actions workflow for dAdd GitHub Actions workflow to auto-deploy to GitHub Pages on push to mastereployment
1 parent 86e90f1 commit bd254a2

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./dist/app3

0 commit comments

Comments
 (0)