diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..39913c9 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -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}" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8dc9d7c --- /dev/null +++ b/.gitignore @@ -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/