Skip to content

Commit c2225a3

Browse files
committed
Add autorelease action
1 parent a8b725a commit c2225a3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/autorelease.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: AutoRelease
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
tagged-release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Wait for build to succeed
18+
uses: fountainhead/[email protected]
19+
id: wait-for-build
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
checkName: Build iOS
23+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
24+
25+
- name: Wait for test to succeed
26+
if: steps.wait-for-build.outputs.conclusion == 'success'
27+
uses: fountainhead/[email protected]
28+
id: wait-for-test
29+
with:
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
checkName: Test iOS
32+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
33+
34+
- uses: "marvinpinto/action-automatic-releases@latest"
35+
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-test.outputs.conclusion == 'success'
36+
with:
37+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
38+
prerelease: false

0 commit comments

Comments
 (0)