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