From f889f18cd9df55c15c18bdc292d323ce7edbbd5f Mon Sep 17 00:00:00 2001 From: sirmrak Date: Thu, 9 Jul 2026 13:16:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/release.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release.yml | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..b0ae11a --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,57 @@ +name: HA Integration Release + +on: + push: + branches: + - main + - master + +# Глобальные переменные окружения +env: + GIT_SSL_NO_VERIFY: true + +jobs: + # ШАГ 1: Валидация структуры HA-интеграции + validate: + name: Validate HA Integration + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Hassfest + uses: home-assistant/actions/hassfest@master + + # ШАГ 2: Автоматический релиз + release: + name: Semantic Release + needs: validate + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.PAT_TOKEN }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: 'pip' + + - name: Install dependencies + run: pip install python-semantic-release + + - name: Configure Git + run: | + git config --local user.email "actions@gitea.local" + git config --local user.name "Gitea Actions Bot" + + - name: Run Semantic Release + env: + GITEA_TOKEN: ${{ secrets.PAT_TOKEN }} + run: semantic-release version \ No newline at end of file