Skip to content

Commit 834d955

Browse files
author
WingLim
committed
feat: use env to set program name
1 parent cc32dbe commit 834d955

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build-and-release:
1010
runs-on: macos-latest
11+
env:
12+
PROGRAM: MicFix
1113
steps:
1214
- name: Checkout
1315
uses: actions/checkout@v2
@@ -18,7 +20,7 @@ jobs:
1820
version: "12"
1921

2022
- name: Build binary
21-
run: xcodebuild archive -scheme ComboJack-Swift -archivePath build
23+
run: xcodebuild archive -scheme ${PROGRAM} -archivePath build
2224

2325
- name: Set version
2426
id: version
@@ -27,10 +29,10 @@ jobs:
2729
- name: Package to zip
2830
id: zip
2931
run: |
30-
dir=ComboJack-Swift-Release-${{ steps.version.outputs.tag }}
32+
dir=${PROGRAM}-Release-${{ steps.version.outputs.tag }}
3133
echo ::set-output name=filename::${dir}
3234
mkdir ${dir}
33-
cp build.xcarchive/Products/ComboJack-Swift ${dir}
35+
cp build.xcarchive/Products/${PROGRAM} ${dir}
3436
cp scripts/* ${dir}
3537
zip -r ${dir}.zip ${dir}
3638

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,6 @@ fastlane/test_output
8989

9090
iOSInjectionProject/
9191

92-
build.xcarchive
92+
build.xcarchive
93+
94+
.DS_Store

0 commit comments

Comments
 (0)