chore: Add workflow_dispatch release variant

This commit is contained in:
Steven Sherry 2024-04-12 11:48:03 -05:00
parent 20273b9223
commit c08cb196c0
No known key found for this signature in database
GPG key ID: 6C07B855139186A2
2 changed files with 33 additions and 4 deletions

View file

@ -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
View 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