Deploy #25
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: Deploy | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Number version to release' | |
required: true | |
jobs: | |
build: | |
name: Deploy pod to cocoapods | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Cache bundler gems | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Bundler | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Deploy | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN}} | |
run: | | |
bundle exec fastlane deploy \ | |
version:${{ github.event.inputs.version }} | |
- name: Generate documentation | |
run: | | |
bundle exec jazzy \ | |
--config jazzy.yaml \ | |
--module-version ${{ github.event.inputs.version }} | |
- name: 🚀 Deploy documentation to gh-pages branch | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: gh-pages | |
FOLDER: Meniga/docs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CLEAN: true |