-
Notifications
You must be signed in to change notification settings - Fork 147
135 lines (126 loc) · 4.35 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: CI
on:
push:
tags:
- 'v*'
jobs:
build:
name: Building release assets
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: xcode-select
run: sudo xcode-select -s /Applications/Xcode.app
- name: build-ios_system
run: swift run --package-path xcfs build
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: .build/release.md
draft: false
prerelease: false
- name: Upload ios_error.h
id: upload_ios_error
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ios_error.h
asset_name: ios_error.h
asset_content_type: text/plain
- name: Upload commandDictionary.plist
id: upload_commandDictionary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Resources/commandDictionary.plist
asset_name: commandDictionary.plist
asset_content_type: text/plain
- name: Upload ios_system
id: upload-ios_system
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/ios_system.xcframework.zip
asset_name: ios_system.xcframework.zip
asset_content_type: application/zip
- name: Upload awk.xcframework
id: upload-awk
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/awk.xcframework.zip
asset_name: awk.xcframework.zip
asset_content_type: application/zip
- name: Upload tar.xcframework
id: upload-tar
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/tar.xcframework.zip
asset_name: tar.xcframework.zip
asset_content_type: application/zip
- name: Upload curl_ios.xcframework
id: upload-curl_ios
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/curl_ios.xcframework.zip
asset_name: curl_ios.xcframework.zip
asset_content_type: application/zip
- name: Upload files.xcframework
id: upload-files
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/files.xcframework.zip
asset_name: files.xcframework.zip
asset_content_type: application/zip
- name: Upload shell.xcframework
id: upload-shell
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/shell.xcframework.zip
asset_name: shell.xcframework.zip
asset_content_type: application/zip
- name: Upload ssh_cmd.xcframework
id: upload-ssh
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/ssh_cmd.xcframework.zip
asset_name: ssh_cmd.xcframework.zip
asset_content_type: application/zip
- name: Upload text.xcframework
id: upload-text
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .build/text.xcframework.zip
asset_name: text.xcframework.zip
asset_content_type: application/zip