File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,10 @@ permissions:
8
8
on :
9
9
workflow_dispatch :
10
10
inputs :
11
- tags :
12
- description : ' Test scenario tags '
11
+ tag :
12
+ description : ' Tag for next release '
13
13
required : true
14
- type : boolean
15
- push :
16
- tags :
17
- - " *"
14
+ type : string
18
15
19
16
jobs :
20
17
generate-xcframework :
38
35
uses : ./.github/actions/generate-xcframework
39
36
- name : Create XCFramework artifact
40
37
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
41
45
release :
42
46
name : Publish Release
43
47
runs-on : ubuntu-latest
48
52
with :
49
53
name : LightningDevKit
50
54
- 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 != '' }}
52
57
with :
53
- files : LightningDevKit.xcframework.zip
58
+ tag : ${{ github.event.inputs.tag }}
59
+ artifacts : LightningDevKit.xcframework.zip
You can’t perform that action at this time.
0 commit comments