-
-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add manual docs publish workflow (#1701)
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 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,41 @@ | ||
name: release-manual-docs | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
default: '' | ||
description: 'Version tag:' | ||
env: | ||
CI_XCODE_13: '/Applications/Xcode_13.4.1.app/Contents/Developer' | ||
|
||
jobs: | ||
publish-docs: | ||
if: github.event.inputs.tag != '' | ||
runs-on: macos-11 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.tag }} | ||
- name: Cache Gems | ||
id: cache-gems | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gem- | ||
- name: Install Bundle | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install | ||
- name: Create Jazzy Docs | ||
run: | | ||
./Scripts/jazzy.sh | ||
env: | ||
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }} | ||
- name: Deploy Jazzy Docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs |