-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows(release): build and release for iOS (part of #42)
- Loading branch information
1 parent
3f9a717
commit 1713ffb
Showing
2 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: propromo.ios CD | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["propromo.ios CI"] | ||
types: | ||
- completed | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Info | ||
run: echo "Release Workflow - IOS App" | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew install xcodegen | ||
- name: Generate Project | ||
run: xcodegen generate | ||
|
||
- name: Xcode Tests | ||
uses: mxcl/xcodebuild@v2 | ||
with: | ||
platform: iOS | ||
action: build | ||
code-coverage: false | ||
|
||
- name: Generate release tag | ||
id: generate_release_tag | ||
uses: amitsingh-007/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_prefix: "v" | ||
tag_template: "yyyy.mm.dd.i" | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag: ${{ steps.generate_release_tag.outputs.next_release_tag }} | ||
name: Release ${{ github.sha }} | ||
body: Release for commit '${{ github.event.workflow_run.head_commit.message }}' | ||
draft: false | ||
prerelease: true | ||
makeLatest: true | ||
# files: | | ||
# xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters