File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ jobs:
46
46
- name : Build with VitePress
47
47
run : npm run docs:build
48
48
- name : Move VitePress build to root of pages directory
49
- run : mkdir -p pages && mv docs/.vitepress/dist/* pages /
49
+ run : mkdir -p output && mv docs/.vitepress/dist/* output /
50
50
51
51
# Build job for ESPHome
52
52
build-esphome :
53
53
runs-on : ubuntu-latest
54
+ needs : build-docs
54
55
steps :
55
56
- name : Checkout
56
57
uses : actions/checkout@v4
@@ -73,37 +74,25 @@ jobs:
73
74
74
75
- name : Move ESPHome build to /esphome directory
75
76
run : |
76
- mkdir -p pages /esphome
77
+ mkdir -p output /esphome
77
78
ls -la ./firmware/.esphome/build/
78
- mv ./firmware/.esphome/build/* pages /esphome/
79
+ mv ./firmware/.esphome/build/* output /esphome/
79
80
80
- upload-artifacts :
81
- needs : [build-docs, build-esphome]
82
- runs-on : ubuntu-latest
83
- steps :
84
81
- name : Upload all artifacts as github-pages
85
82
uses : actions/upload-artifact@v4
86
83
with :
87
- name : github-pages
88
- path : pages
84
+ name : github-pages
85
+ path : output
89
86
90
87
# Deployment job
91
88
deploy :
92
89
environment :
93
90
name : github-pages
94
91
url : ${{ steps.deployment.outputs.page_url }}
95
- needs : [upload-artifacts ]
92
+ needs : [build-docs, build-esphome ]
96
93
runs-on : ubuntu-latest
97
94
name : Deploy
98
95
steps :
99
- - name : Download all artifacts
100
- uses : actions/download-artifact@v4
101
- with :
102
- name : github-pages
103
- path : pages
104
-
105
96
- name : Deploy to GitHub Pages
106
97
id : deployment
107
- uses : actions/deploy-pages@v4
108
- with :
109
- path : pages
98
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments