Use deployment environment in GitHub build actions (#93800)
This commit is contained in:
parent
89cc57c0d6
commit
46d8885023
1 changed files with 3 additions and 0 deletions
3
.github/workflows/builder.yml
vendored
3
.github/workflows/builder.yml
vendored
|
@ -62,6 +62,7 @@ jobs:
|
|||
|
||||
build_python:
|
||||
name: Build PyPi package
|
||||
environment: ${{ needs.init.outputs.channel }}
|
||||
needs: ["init", "build_base"]
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'home-assistant' && needs.init.outputs.publish == 'true'
|
||||
|
@ -299,6 +300,7 @@ jobs:
|
|||
|
||||
publish_ha:
|
||||
name: Publish version files
|
||||
environment: ${{ needs.init.outputs.channel }}
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: ["init", "build_machine"]
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -332,6 +334,7 @@ jobs:
|
|||
|
||||
publish_container:
|
||||
name: Publish meta container for ${{ matrix.registry }}
|
||||
environment: ${{ needs.init.outputs.channel }}
|
||||
if: github.repository_owner == 'home-assistant'
|
||||
needs: ["init", "build_base"]
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Reference in a new issue