Skip to content

Commit 31a1eb9

Browse files
committed
Refactor GitHub Actions workflow to streamline deployment steps. Reintroduce deploy job with updated structure and remove commented-out code for clarity.
1 parent b105ec7 commit 31a1eb9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ jobs:
3737
- name: Copy 404.html for SPA routing
3838
run: cp dist/index.html dist/404.html
3939

40+
# - name: Deploy to GitHub Pages
41+
# run: npm run deploy
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
4050
- name: Deploy to GitHub Pages
41-
run: npm run deploy
42-
43-
# deploy:
44-
# environment:
45-
# name: github-pages
46-
# url: ${{ steps.deployment.outputs.page_url }}
47-
# runs-on: ubuntu-latest
48-
# needs: build
49-
# steps:
50-
# - name: Deploy to GitHub Pages
51-
# id: deployment
52-
# uses: actions/deploy-pages@v4
51+
id: deployment
52+
uses: actions/deploy-pages@v4
5353
# on:
5454
# push:
5555
# branches:

0 commit comments

Comments
 (0)