Publish Release #17
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: Publish Release | |
on: workflow_dispatch | |
jobs: | |
create_github_release: | |
runs-on: macos-12 | |
environment: "Github Release" | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | |
- name: Install gem dependencies | |
run: gem install bundler && bundle install | |
- name: Create GitHub Release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
REPO_NAME: ${{ github.repository }} | |
GIT_SHA: ${{ github.sha }} | |
run: bundle exec fastlane ios github_release | |
cocoapods_release: | |
runs-on: macos-12 | |
environment: "Cocoapods Release" | |
needs: [create_github_release] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | |
- name: Install gem dependencies | |
run: gem install bundler && bundle install | |
- name: Upload to Cocoapods | |
env: | |
REPO_NAME: ${{ github.repository }} | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
run: bundle exec fastlane ios cocapods_release |