@@ -21,35 +21,39 @@ jobs:
21
21
uses : ./.github/workflows/__shared-ci.yml
22
22
secrets : inherit
23
23
24
- deploy :
25
- name : Deploy website
26
- needs : ci
27
- runs-on : ubuntu-latest
28
- permissions :
29
- contents : write
30
- pages : write
31
- id-token : write
32
- environment :
33
- name : github-pages
34
- url : ${{ steps.deployment.outputs.page_url }}
35
- steps :
36
- - uses : actions/checkout@v4
37
-
38
- - uses : actions/download-artifact@v4
39
- with :
40
- name : documentation
41
-
42
- - name : ⚙️ Setup Pages
43
- if : github.ref == 'refs/heads/main'
44
- uses : actions/configure-pages@v5
45
-
46
- - name : 🚀 Deploy to GitHub Pages
47
- id : deployment
48
- if : github.ref == 'refs/heads/main'
49
- uses : actions/deploy-pages@v4
50
-
51
- - name : 🔭 Check the site is up
52
-
53
- with :
54
- url-to-hit : ${{ steps.deployment.outputs.page_url }}
55
- expected-statuses : " 200"
24
+ deploy :
25
+ if : github.ref == 'refs/heads/main'
26
+ name : Deploy website
27
+ needs : ci
28
+ runs-on : ubuntu-latest
29
+ permissions :
30
+ contents : write
31
+ pages : write
32
+ id-token : write
33
+ environment :
34
+ name : github-pages
35
+ url : ${{ steps.deployment.outputs.page_url }}
36
+ steps :
37
+ - uses : actions/checkout@v4
38
+
39
+ - uses : actions/download-artifact@v4
40
+ with :
41
+ name : build
42
+
43
+ - name : 📦 Upload website build artifact
44
+ uses : actions/upload-pages-artifact@v3
45
+ with :
46
+ path : public
47
+
48
+ - name : ⚙️ Setup Pages
49
+ uses : actions/configure-pages@v5
50
+
51
+ - name : 🚀 Deploy to GitHub Pages
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
54
+
55
+ - name : 🔭 Check the site is up
56
+
57
+ with :
58
+ url-to-hit : ${{ steps.deployment.outputs.page_url }}
59
+ expected-statuses : " 200"
0 commit comments