From b6ec05c8ea17d936cb695713d11e0a61854bfe84 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:45:02 +0100 Subject: [PATCH] ci: Add manual docs publish workflow (#1701) --- .github/workflows/release-manual-docs.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release-manual-docs.yml diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml new file mode 100644 index 000000000..7cba2891e --- /dev/null +++ b/.github/workflows/release-manual-docs.yml @@ -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