Skip to content

Commit

Permalink
Add autorelease action
Browse files Browse the repository at this point in the history
  • Loading branch information
terwanerik committed Mar 25, 2022
1 parent b34a9ef commit fcd8b65
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: AutoRelease

on:
push:
tags:
- "*"

workflow_dispatch:

jobs:
tagged-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Wait for build to succeed
uses: fountainhead/[email protected]
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build iOS
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Wait for test to succeed
if: steps.wait-for-build.outputs.conclusion == 'success'
uses: fountainhead/[email protected]
id: wait-for-test
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Test iOS
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- uses: "marvinpinto/action-automatic-releases@latest"
if: steps.wait-for-build.outputs.conclusion == 'success' && steps.wait-for-test.outputs.conclusion == 'success'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

0 comments on commit fcd8b65

Please sign in to comment.