ci: split build and release into separate manual-only workflows
Building on every push was wasteful and mixed two different concerns (a disposable build artifact vs. a published release). Both are now workflow_dispatch-only (a button in the Actions tab, no more automatic runs on push/tag): - build-apk.yml: builds the APK and uploads it as a run artifact. - release.yml: builds the APK and publishes it as a GitHub Release for a given tag.
This commit is contained in:
2 files changed
+52
-21
No files matched your search
@@ -1,24 +1,11 @@
|
||||
name: Build APK
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- claude/main-bugs-review-nd8dax
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_tag:
|
||||
description: "Tag to publish as a GitHub Release (e.g. v2.0.2). Leave empty to just build."
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -57,11 +44,3 @@ jobs:
|
||||
name: TurnProxy-apk
|
||||
path: app/build/outputs/apk/release/*.apk
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Publish GitHub Release
|
||||
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ startsWith(github.ref, 'refs/tags/v') && github.ref_name || inputs.release_tag }}
|
||||
files: app/build/outputs/apk/release/*.apk
|
||||
generate_release_notes: true
|
||||
Reference in new issue
Block a user