Merge pull request #280 from blockchyp/feature/CHYP-3619 #127
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
name: blockchyp-ios | |
on: | |
push: | |
branches: | |
- "develop" | |
- "master" | |
- "preview" | |
tags: | |
- "*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
- uses: act10ns/slack@v1 | |
with: | |
status: starting | |
channel: '#gitactivity' | |
if: always() | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run Build | |
run: make build | |
- name: Run Test | |
run: make test | |
- uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
channel: '#gitactivity' | |
if: always() | |
publish: | |
runs-on: macos-12 | |
if: ${{ always() && contains(join(needs.*.result, ','), 'success') && startsWith(github.ref_name, 'v') }} | |
needs: [ test ] | |
steps: | |
- uses: act10ns/slack@v1 | |
with: | |
status: starting | |
channel: '#gitactivity' | |
if: always() | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: CocoaPods Publish | |
run: pod trunk push blockchyp-ios/BlockChyp.podspec --allow-warnings | |
- uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
channel: '#gitactivity' | |
if: always() |