Repository navigation
59 lines (53 loc) · 1.52 KB
/
Copy pathdeploy-addons.yml
File metadata and controls
59 lines (53 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy sunsynk addon to ghcr.io
on:
release:
types:
- published
workflow_run:
workflows: ["CI"]
branches: [main]
types:
- completed
workflow_dispatch: {}
jobs:
check:
runs-on: ubuntu-latest
name: Test changed-files
permissions:
contents: write
id-token: write
packages: write
pull-requests: read
#secrets: inherit
steps:
- name: Check out the repository
uses: actions/checkout@v7
with:
# Shallow checkout (default depth 1) breaks tj-actions/changed-files on
# release events: it needs prior tags/commits to diff the new tag.
fetch-depth: 0
fetch-tags: true
- name: Get all test, doc and src files that have changed
id: changed
uses: tj-actions/changed-files@v47
with:
files_yaml: |
sunsynk:
- ".github/workflows/deploy-addons.yml"
- "hass-addon-sunsynk-multi/**"
- "hass-addon-sunsynk-edge/**"
- "src/ha_addon_sunsynk_multi/**"
- "src/sunsynk/**"
- "pyproject.toml"
- "uv.lock"
outputs:
changed_ss: ${{ steps.changed.outputs.sunsynk_any_changed }}
deployer:
needs: [check]
if: ${{ needs.check.outputs.changed_ss == 'true' }}
uses: kellerza/hass-addons/.github/workflows/deployer2.yml@main
secrets: inherit
with:
app-stable: hass-addon-sunsynk-multi
app-edge: hass-addon-sunsynk-edge
publish: true