Release with autogenerated zip files (#242)

* Try autobuilding

* Typo fix

* Entire components dir

* Directly upload zip
This commit is contained in:
Christiaan Goossens
2026-04-14 13:55:09 +02:00
committed by GitHub
parent baf3ac6b5a
commit ddb2952e64
5 changed files with 61 additions and 5 deletions

35
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: Build release and add zip file
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
pull_request:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Build
run: scripts/build
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
path: ./hass-oidc-auth.zip
archive: false
if: ${{ github.event_name == 'pull_request' }}
- name: Upload build to existing release
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload "${{ github.ref_name }}" ./hass-oidc-auth.zip --clobber