-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yml
More file actions
39 lines (36 loc) · 1.54 KB
/
Taskfile.yml
File metadata and controls
39 lines (36 loc) · 1.54 KB
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
version: '3'
tasks:
package:update:
desc: Generates Package.swift from the template using a given tag and checksum.
# We prefix with "RELEASE_" to avoid clashing with Taskfile's internal env value, "CHECKSUM".
cmds:
- go run tasks/package_update.go "{{.RELEASE_TAG}}" "{{.RELEASE_CHECKSUM}}"
sources:
- tasks/package_update.go
- Package.swift.template
generates:
- Package.swift
package:publish:
desc: Publishes the updated Package.swift and a new git tag.
cmds:
- git config --global user.name 'github-actions[bot]'
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- git add Package.swift build.gradle.kts
- git commit -m "Update Package.swift and build.gradle.kts for release {{.RELEASE_TAG}}"
- git tag -a "{{.RELEASE_TAG}}" -m "Release {{.RELEASE_TAG}}"
- git push origin HEAD:main
- git push origin "{{.RELEASE_TAG}}"
sources:
- Package.swift
build:mobileproxy:
desc: Builds the mobileproxy artifacts from the Outline SDK.
cmds:
- git clone --depth 1 --branch "{{.OUTLINE_SDK_TAG}}" https://github.com/Jigsaw-Code/outline-sdk.git outline-sdk
- cd outline-sdk/x && task build:mobileproxy
- mkdir -p output
- cp outline-sdk/x/out/mobileproxy/mobileproxy.aar output/mobileproxy.aar
- cp outline-sdk/x/out/mobileproxy/mobileproxy.xcframework.zip output/mobileproxy.xcframework.zip
- rm -rf outline-sdk
generates:
- output/mobileproxy.aar
- output/mobileproxy.xcframework.zip