-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (55 loc) · 1.73 KB
/
swift.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
name: Check
on:
schedule:
- cron: "32 1 * * *"
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
nightly:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: sh Scripts/pod.sh 0.0.$(date -v -1d +%Y%m%d)
id: pod
- name: Create XCFrameworks and Package.swift
if: ${{ steps.pod.outputs.version }}
run: sh Scripts/all.sh ${{ steps.pod.outputs.version }}
- name: Commit
if: ${{ steps.pod.outputs.version }}
uses: EndBug/add-and-commit@v8
with:
add: 'Package.swift'
message: "add ${{ steps.pod.outputs.version }}"
- name: Release
if: ${{ steps.pod.outputs.version }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.pod.outputs.version }}"
files: 'App/Pods/TensorFlowLiteC/Frameworks/*.zip'
release:
needs: nightly
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: git pull
- id: pod
run: sh Scripts/pod.sh
- name: Create XCFrameworks and Package.swift
if: ${{ steps.pod.outputs.version }}
run: sh Scripts/all.sh ${{ steps.pod.outputs.version }}
- name: Commit
if: ${{ steps.pod.outputs.version }}
uses: EndBug/add-and-commit@v8
with:
add: 'Package.swift'
message: "add ${{ steps.pod.outputs.version }}"
- name: Release
if: ${{ steps.pod.outputs.version }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.pod.outputs.version }}"
files: 'App/Pods/TensorFlowLiteC/Frameworks/*.zip'