Skip to content

Commit 2de3994

Browse files
committed
Update deploy.yml
1 parent 68e66a9 commit 2de3994

File tree

1 file changed

+15
-31
lines changed

1 file changed

+15
-31
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,34 @@
1-
name: Deploy to GitHub Pages
1+
name: Build and Deploy to GitHub Pages
22

33
on:
44
push:
55
branches: [ main ]
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
9+
contents: write
1210

1311
jobs:
14-
build:
12+
build-and-deploy:
1513
runs-on: ubuntu-latest
16-
1714
steps:
18-
- name: Checkout repository
15+
- name: Checkout 🛎️
1916
uses: actions/checkout@v3
20-
21-
- name: Set up Node.js
17+
18+
- name: Setup Node.js ⚙️
2219
uses: actions/setup-node@v3
2320
with:
2421
node-version: 19
2522
cache: 'npm'
26-
27-
- name: Install dependencies
23+
24+
- name: Install dependencies 📦
2825
run: npm ci
29-
30-
- name: Build
26+
27+
- name: Build 🔧
3128
run: npm run build
32-
33-
- name: Setup Pages
34-
uses: actions/configure-pages@v3
35-
36-
- name: Upload artifact
37-
uses: actions/upload-pages-artifact@v1
29+
30+
- name: Deploy 🚀
31+
uses: JamesIves/github-pages-deploy-action@v4
3832
with:
39-
path: './dist'
40-
41-
deploy:
42-
environment:
43-
name: github-pages
44-
url: ${{ steps.deployment.outputs.page_url }}
45-
runs-on: ubuntu-latest
46-
needs: build
47-
steps:
48-
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v2
33+
folder: dist # The folder the action should deploy
34+
branch: gh-pages # The branch the action should deploy to

0 commit comments

Comments
 (0)