-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (49 loc) · 1.28 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
name: Check for update
on:
schedule:
- cron: "43 2 * * *"
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: Update sources
if: ${{ steps.pod.outputs.version }}
run: sh Scripts/all.sh
- name: Commit
if: ${{ steps.pod.outputs.version }}
uses: EndBug/add-and-commit@v7
with:
add: 'Sources'
message: "add ${{ steps.pod.outputs.version }}"
- if: ${{ steps.pod.outputs.version }}
run: |
git tag "${{ steps.pod.outputs.version }}"
git push --tags
release:
needs: nightly
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- id: pod
run: sh Scripts/pod.sh
- name: Update sources
if: ${{ steps.pod.outputs.version }}
run: sh Scripts/all.sh
- name: Commit
if: ${{ steps.pod.outputs.version }}
uses: EndBug/add-and-commit@v7
with:
add: 'Package.swift'
message: "add ${{ steps.pod.outputs.version }}"
- name: Tag
if: ${{ steps.pod.outputs.version }}
run: |
git tag "${{ steps.pod.outputs.version }}"
git push --tags