Skip to content

Commit 6d969f2

Browse files
committed
Add GitHub Pages deployment script
1 parent 787abbb commit 6d969f2

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
- run: npm install
24+
working-directory: frontend
25+
- run: npm run build
26+
working-directory: frontend
27+
- uses: actions/configure-pages@v5
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: frontend/build
31+
- uses: actions/deploy-pages@v4
32+
id: deployment

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "dzs-frontend",
33
"version": "0.0.1",
4+
"homepage": "/dzs-technical-prototype/",
45
"scripts": {
56
"start": "react-scripts start",
67
"build": "react-scripts build"

0 commit comments

Comments
 (0)