chore: Add workflow_dispatch release variant
This commit is contained in:
parent
20273b9223
commit
c08cb196c0
2 changed files with 33 additions and 4 deletions
13
.github/workflows/build-and-release.yaml
vendored
13
.github/workflows/build-and-release.yaml
vendored
|
|
@ -12,8 +12,6 @@ on:
|
|||
secrets:
|
||||
XCFRAMEWORK_SIGNING_TOKEN:
|
||||
required: true
|
||||
# RELEASE_TOKEN:
|
||||
# required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -23,9 +21,16 @@ jobs:
|
|||
- run: sudo xcode-select --switch /Applications/Xcode_15.1.app
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: brew install ghr
|
||||
run: brew install ghr xcbeautify
|
||||
- name: Build Capacitor and Cordova
|
||||
run: ./build-cap ${{ inputs.release-version }}
|
||||
run: |
|
||||
set -eo pipefail
|
||||
./build-cap ${{ inputs.release-version }} | tee -a capacitor-build.log | xcbeautify --renderer github-actions
|
||||
- name: Archive Log
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: capacitor-build.log
|
||||
path: capacitor-build.log
|
||||
- name: Sign Capacitor xcframework
|
||||
uses: ionic-team/sign-xcframework@main
|
||||
with:
|
||||
|
|
|
|||
24
.github/workflows/dispatch-release.yaml
vendored
Normal file
24
.github/workflows/dispatch-release.yaml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Dispatch Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release-version:
|
||||
description: The version to release
|
||||
required: true
|
||||
type: string
|
||||
draft-flag:
|
||||
description: "Create a Draft Release or Immediately Release"
|
||||
type: choice
|
||||
default: -draft
|
||||
options:
|
||||
- -draft
|
||||
- ""
|
||||
|
||||
jobs:
|
||||
create-release:
|
||||
uses: ./.github/workflows/build-and-release.yaml
|
||||
with:
|
||||
release-version: ${{ inputs.release-version }}
|
||||
draft-flag: ${{ inputs.draft-flag }}
|
||||
secrets: inherit
|
||||
Loading…
Reference in a new issue