Skip to content

Commit 2362d2f

Browse files
committed
Test
1 parent 9de2277 commit 2362d2f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ jobs:
4747
run: npm run docs:build
4848
- name: Move VitePress build to root of pages directory
4949
run: mkdir -p pages && mv docs/.vitepress/dist/* pages/
50-
- name: Upload VitePress artifact
51-
uses: actions/upload-artifact@v4
52-
with:
53-
name: vitepress-site
54-
path: pages
5550

5651
# Build job for ESPHome
5752
build-esphome:
@@ -75,31 +70,36 @@ jobs:
7570
ls -la
7671
ls -la .esphome/
7772
ls -la .esphome/build/
78-
73+
7974
- name: Move ESPHome build to /esphome directory
8075
run: |
8176
mkdir -p pages/esphome
8277
ls -la ./firmware/.esphome/build/
8378
mv ./firmware/.esphome/build/* pages/esphome/
8479
85-
- name: Upload ESPHome artifact
80+
upload-artifacts:
81+
needs: [build-docs, build-esphome]
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Upload all artifacts as github-pages
8685
uses: actions/upload-artifact@v4
8786
with:
88-
name: esphome-firmware
89-
path: pages/esphome
87+
name: github-pages
88+
path: pages
9089

9190
# Deployment job
9291
deploy:
9392
environment:
9493
name: github-pages
9594
url: ${{ steps.deployment.outputs.page_url }}
96-
needs: [build-docs, build-esphome]
95+
needs: [upload-artifacts]
9796
runs-on: ubuntu-latest
9897
name: Deploy
9998
steps:
10099
- name: Download all artifacts
101100
uses: actions/download-artifact@v4
102101
with:
102+
name: github-pages
103103
path: pages
104104

105105
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)