Skip to content

Commit 694c61e

Browse files
committed
Test
1 parent 2362d2f commit 694c61e

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ jobs:
4646
- name: Build with VitePress
4747
run: npm run docs:build
4848
- 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/
5050

5151
# Build job for ESPHome
5252
build-esphome:
5353
runs-on: ubuntu-latest
54+
needs: build-docs
5455
steps:
5556
- name: Checkout
5657
uses: actions/checkout@v4
@@ -73,37 +74,25 @@ jobs:
7374
7475
- name: Move ESPHome build to /esphome directory
7576
run: |
76-
mkdir -p pages/esphome
77+
mkdir -p output/esphome
7778
ls -la ./firmware/.esphome/build/
78-
mv ./firmware/.esphome/build/* pages/esphome/
79+
mv ./firmware/.esphome/build/* output/esphome/
7980
80-
upload-artifacts:
81-
needs: [build-docs, build-esphome]
82-
runs-on: ubuntu-latest
83-
steps:
8481
- name: Upload all artifacts as github-pages
8582
uses: actions/upload-artifact@v4
8683
with:
87-
name: github-pages
88-
path: pages
84+
name: github-pages
85+
path: output
8986

9087
# Deployment job
9188
deploy:
9289
environment:
9390
name: github-pages
9491
url: ${{ steps.deployment.outputs.page_url }}
95-
needs: [upload-artifacts]
92+
needs: [build-docs, build-esphome]
9693
runs-on: ubuntu-latest
9794
name: Deploy
9895
steps:
99-
- name: Download all artifacts
100-
uses: actions/download-artifact@v4
101-
with:
102-
name: github-pages
103-
path: pages
104-
10596
- name: Deploy to GitHub Pages
10697
id: deployment
107-
uses: actions/deploy-pages@v4
108-
with:
109-
path: pages
98+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)