Skip to content

Commit d80d851

Browse files
committed
Update GitHub Pages deployment configuration
1 parent 444260b commit d80d851

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,24 @@ jobs:
3232
uses: actions/setup-node@v4
3333
with:
3434
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
4135

4236
- 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
4443
4544
- name: Build website
4645
run: npm run build
4746
env:
4847
BASE_URL: ${{ steps.pages.outputs.base_path }}
4948

49+
- name: Setup Pages
50+
id: pages
51+
uses: actions/configure-pages@v4
52+
5053
- name: Add CNAME file if exists
5154
run: |
5255
if [ -f "CNAME" ]; then
@@ -68,4 +71,13 @@ jobs:
6871
steps:
6972
- name: Deploy to GitHub Pages
7073
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

0 commit comments

Comments
 (0)