File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,24 @@ jobs:
32
32
uses : actions/setup-node@v4
33
33
with :
34
34
node-version : 18
35
- cache : npm
36
- cache-dependency-path : ./docs/package-lock.json
37
-
38
- - name : Setup Pages
39
- id : pages
40
- uses : actions/configure-pages@v4
41
35
42
36
- name : Install dependencies
43
- run : npm ci
37
+ run : |
38
+ if [ ! -f "package-lock.json" ]; then
39
+ npm install
40
+ else
41
+ npm ci
42
+ fi
44
43
45
44
- name : Build website
46
45
run : npm run build
47
46
env :
48
47
BASE_URL : ${{ steps.pages.outputs.base_path }}
49
48
49
+ - name : Setup Pages
50
+ id : pages
51
+ uses : actions/configure-pages@v4
52
+
50
53
- name : Add CNAME file if exists
51
54
run : |
52
55
if [ -f "CNAME" ]; then
68
71
steps :
69
72
- name : Deploy to GitHub Pages
70
73
id : deployment
71
- uses : actions/deploy-pages@v4
74
+ uses : actions/deploy-pages@v4
75
+
76
+ - name : Deployment Status
77
+ if : always()
78
+ run : |
79
+ if [ "${{ steps.deployment.outcome }}" == "success" ]; then
80
+ echo "🚀 Deployment successful! The site is live at ${{ steps.deployment.outputs.page_url }}"
81
+ else
82
+ echo "❌ Deployment failed. Please check the logs for more information."
83
+ fi
You can’t perform that action at this time.
0 commit comments