Skip to content

Commit a16afb5

Browse files
authored
Upload iOS releases to GitHub (#86)
1 parent ec4b6cf commit a16afb5

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/distribute.yml

+22-3
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,42 @@ jobs:
116116
runs-on: ubuntu-20.04
117117
needs: [get_version, build_ios, build_macos]
118118
steps:
119-
- name: Download binary
119+
- name: Download binary (macOS)
120120
uses: actions/download-artifact@v2
121121
with:
122122
name: ipatool-macos-v${{ needs.get_version.outputs.version }}
123123
path: ipatool-macos-v${{ needs.get_version.outputs.version }}
124-
- name: Archive binary
124+
- name: Archive binary (macOS)
125125
run: |
126126
mv ipatool-macos-v${{ needs.get_version.outputs.version }}/ipatool ipatool
127127
zip ipatool-macos-v${{ needs.get_version.outputs.version }}.zip ipatool
128-
- name: Upload binary to release
128+
rm ipatool
129+
- name: Upload release (macOS)
129130
uses: svenstaro/upload-release-action@v2
130131
with:
131132
repo_token: ${{ secrets.GITHUB_TOKEN }}
132133
file: ipatool-macos-v${{ needs.get_version.outputs.version }}.zip
133134
asset_name: ipatool-macos-v${{ needs.get_version.outputs.version }}.zip
134135
tag: ${{ github.ref }}
135136
overwrite: false
137+
- name: Download binary (iOS)
138+
uses: actions/download-artifact@v2
139+
with:
140+
name: ipatool-ios-v${{ needs.get_version.outputs.version }}
141+
path: ipatool-ios-v${{ needs.get_version.outputs.version }}
142+
- name: Archive binary (iOS)
143+
run: |
144+
mv ipatool-ios-v${{ needs.get_version.outputs.version }}/ipatool ipatool
145+
zip ipatool-ios-v${{ needs.get_version.outputs.version }}.zip ipatool
146+
rm ipatool
147+
- name: Upload release (iOS)
148+
uses: svenstaro/upload-release-action@v2
149+
with:
150+
repo_token: ${{ secrets.GITHUB_TOKEN }}
151+
file: ipatool-ios-v${{ needs.get_version.outputs.version }}.zip
152+
asset_name: ipatool-ios-v${{ needs.get_version.outputs.version }}.zip
153+
tag: ${{ github.ref }}
154+
overwrite: false
136155
- name: Checkout homebrew repo
137156
uses: actions/checkout@v2
138157
with:

0 commit comments

Comments
 (0)