adding workflow

This commit is contained in:
2026-05-12 11:08:44 +03:00
parent 0b284bda4d
commit 19d1079eea
2 changed files with 120 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., 1.1.5)'
required: true
type: string
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update manifest.json
run: |
sed -i 's/"version": ".*"/"version": "${{ github.event.inputs.version }}"/' custom_components/boiler_aux_heater_3phase/manifest.json
- name: Commit manifest change
run: |
git config user.name "gitea-actions[bot]"
git config user.email "gitea-actions[bot]@noreply"
git add custom_components/boiler_aux_heater_3phase/manifest.json
git commit -m "Bump version to ${{ github.event.inputs.version }}"
git push
- name: Create tag
run: |
git tag v${{ github.event.inputs.version }}
git push origin v${{ github.event.inputs.version }}
- name: Create Gitea Release
run: |
curl -s -X POST "${GITEA_SERVER_URL}/api/v1/repos/${GITHUB_REPOSITORY}/releases" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"v${{ github.event.inputs.version }}\",\"name\":\"v${{ github.event.inputs.version }}\",\"draft\":true,\"prerelease\":false}"
+75
View File
@@ -0,0 +1,75 @@
# ── OS ─────────────────────────────────────────────────────────────────────
.DS_Store
Thumbs.db
desktop.ini
# ── Secrets / environment ───────────────────────────────────────────────────
.env
.env.local
.env.*.local
*.pem
*.key
*.p12
*.pfx
# ── Logs ───────────────────────────────────────────────────────────────────
*.log
logs/
# ── Compiled / bytecode ─────────────────────────────────────────────────────
*.class
*.pyc
*.pyo
*.pyd
__pycache__/
*.o
*.a
*.so
*.dylib
*.dll
*.exe
*.lib
# ── Archives ───────────────────────────────────────────────────────────────
*.zip
*.tar
*.tar.gz
*.tgz
*.tar.bz2
*.rar
*.7z
# ── Java / JVM ──────────────────────────────────────────────────────────────
*.jar
*.war
*.ear
target/
.gradle/
build/
.m2/
# ── JavaScript / Node ───────────────────────────────────────────────────────
node_modules/
dist/
.next/
.nuxt/
.svelte-kit/
.output/
# ── Python ──────────────────────────────────────────────────────────────────
.venv/
venv/
env/
ENV/
*.egg-info/
dist/
.tox/
.pytest_cache/
htmlcov/
.coverage
# ── IDE ─────────────────────────────────────────────────────────────────────
.idea/
.vscode/
*.iml
.eclipse/