Skip to content

Commit e5a9c72

Browse files
committed
Create tag on manually triggered release.
1 parent e6d089b commit e5a9c72

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/release-framework.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ permissions:
88
on:
99
workflow_dispatch:
1010
inputs:
11-
tags:
12-
description: 'Test scenario tags'
11+
tag:
12+
description: 'Tag for next release'
1313
required: true
14-
type: boolean
15-
push:
16-
tags:
17-
- "*"
14+
type: string
1815

1916
jobs:
2017
generate-xcframework:
@@ -38,6 +35,13 @@ jobs:
3835
uses: ./.github/actions/generate-xcframework
3936
- name: Create XCFramework artifact
4037
uses: ./.github/actions/upload-xcframework-artifact
38+
- name: Update Package.swift checksum
39+
if: ${{ github.event.inputs.tag != null && github.event.inputs.tag != '' }}
40+
run: |
41+
python3 ./src/scripts/update_swift_package_checksum.py `swift package compute-checksum LightningDevKit.xcframework.zip`
42+
git commit -m "Update Package.swift for ${{ github.event.inputs.tag }} release." ./Package.swift
43+
git tag ${{ github.event.inputs.tag }}
44+
git push origin HEAD:main --tags
4145
release:
4246
name: Publish Release
4347
runs-on: ubuntu-latest
@@ -48,6 +52,8 @@ jobs:
4852
with:
4953
name: LightningDevKit
5054
- name: Create Release
51-
uses: softprops/action-gh-release@v1
55+
uses: ncipollo/release-action@v1
56+
if: ${{ github.event.inputs.tag != null && github.event.inputs.tag != '' }}
5257
with:
53-
files: LightningDevKit.xcframework.zip
58+
tag: ${{ github.event.inputs.tag }}
59+
artifacts: LightningDevKit.xcframework.zip

0 commit comments

Comments
 (0)