Skip to content

Commit ea06866

Browse files
Harshith ReddyHarshith Reddy
authored andcommitted
Trying deployment
1 parent 1281e25 commit ea06866

25 files changed

Lines changed: 715 additions & 2 deletions

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy to GitHub Pages (Vite)
22
on:
33
push:
44
branches: [ master ]
55
workflow_dispatch:
6+
67
permissions:
78
contents: read
89
pages: write
910
id-token: write
11+
1012
concurrency:
1113
group: "pages"
1214
cancel-in-progress: true
@@ -25,10 +27,13 @@ jobs:
2527
- name: Build
2628
working-directory: portfolio-react
2729
run: npm run build
30+
- name: SPA fallback (optional)
31+
run: cp portfolio-react/dist/index.html portfolio-react/dist/404.html
2832
- name: Upload artifact
2933
uses: actions/upload-pages-artifact@v3
3034
with:
31-
path: portfolio-react/build
35+
path: portfolio-react/dist
36+
3237
deploy:
3338
needs: build
3439
runs-on: ubuntu-latest
2.66 MB
Binary file not shown.
4.99 MB
Binary file not shown.
4.72 MB
Loading
1.03 MB
Loading
1.18 MB
Binary file not shown.
127 KB
Binary file not shown.
4.9 MB
Loading
41.7 KB
Loading
1.1 MB
Loading

0 commit comments

Comments
 (0)