File tree Expand file tree Collapse file tree 3 files changed +14
-18
lines changed Expand file tree Collapse file tree 3 files changed +14
-18
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ concurrency:
25
25
26
26
jobs :
27
27
# Build job
28
- build :
28
+ build-docs :
29
29
runs-on : ubuntu-latest
30
30
steps :
31
31
- name : Checkout
@@ -50,12 +50,22 @@ jobs:
50
50
with :
51
51
path : docs/.vitepress/dist
52
52
53
+ compile-firmware :
54
+ name : Compile Doorman Stock Firmware
55
+ uses : ./.github/workflows/esphome-build.yml
56
+ with :
57
+ files : ./firmware/doorman-stock.yaml
58
+ name : Doorman
59
+ manifest_filename : doorman-stock-manifest.json
60
+ esphome_version : latest
61
+ directory_name : doorman-stock
62
+
53
63
# Deployment job
54
64
deploy :
55
65
environment :
56
66
name : github-pages
57
67
url : ${{ steps.deployment.outputs.page_url }}
58
- needs : build
68
+ needs : [ build-docs, compile-firmware]
59
69
runs-on : ubuntu-latest
60
70
name : Deploy
61
71
steps :
Original file line number Diff line number Diff line change 1
1
name : Build and Publish ESPHome firmware
2
2
3
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
4
- permissions :
5
- contents : read
6
- pages : write
7
- id-token : write
8
-
9
3
on :
10
4
workflow_call :
11
5
inputs :
18
12
required : false
19
13
type : string
20
14
default : ESPHome
21
- clean :
22
- description : Remove deleted files from the build
23
- required : false
24
- type : boolean
25
- default : true
26
15
manifest_filename :
27
16
description : Filename of the manifest to write.
28
17
required : false
@@ -73,19 +62,16 @@ jobs:
73
62
mv "${{ steps.esphome-build.outputs.name}}" temp
74
63
mv temp "${{ inputs.directory_name }}"
75
64
mv "${{ inputs.directory_name }}" output/
76
- - uses : actions/upload-artifact@v3.1.2
65
+ - uses : actions/upload-artifact@v4
77
66
with :
78
67
name : ${{ inputs.name }}
79
68
path : output
80
69
81
70
publish :
82
71
if : (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/docs-test')
83
- name : Publish new firmware and website to GitHub Pages
72
+ name : Publish new firmware
84
73
runs-on : ubuntu-latest
85
74
needs : [build]
86
- environment :
87
- name : github-pages
88
- url : ${{ steps.deployment.outputs.page_url }}
89
75
steps :
90
76
- uses : actions/checkout@v3.5.3
91
77
- uses : actions/download-artifact@v3.0.2
You can’t perform that action at this time.
0 commit comments