File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -31,32 +31,38 @@ jobs:
31
31
- name : Install dependencies
32
32
run : npm i
33
33
34
- - name : Clean previous build
35
- run : rm -rf dist
36
-
37
34
- name : Generate static site
38
35
run : |
39
36
npm run build:all
40
37
ls -la
41
- # Clean development artifacts
42
38
rm -rf node_modules
39
+ env :
40
+ NODE_ENV : production
41
+ OUTPUT_DIR : ./
42
+
43
+ - name : Upload build artifact
44
+ uses : actions/upload-artifact@v4
45
+ with :
46
+ name : site-build-files
47
+ path : ./
48
+ if-no-files-found : error
43
49
44
50
deploy :
45
51
needs : build
46
52
runs-on : ubuntu-latest
53
+ permissions :
54
+ pages : write
55
+ id-token : write
56
+ environment :
57
+ name : github-pages
58
+ url : ${{ steps.deployment.outputs.page_url }}
47
59
steps :
48
- - name : Clean workspace
49
- run : rm -rf *
50
-
51
60
- name : Download build artifact
52
61
uses : actions/download-artifact@v4
53
62
with :
54
63
name : site-build-files
55
64
path : ./
56
65
57
- - name : Remove CI files
58
- run : rm -rf .github
59
-
60
66
- name : Setup Pages
61
67
uses : actions/configure-pages@v4
62
68
You can’t perform that action at this time.
0 commit comments