Skip to content

Commit 12fef3b

Browse files
authored
ci: Fix publishing API docs on release (#1725)
1 parent 0bfcf42 commit 12fef3b

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/release-automated.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches: [ master, release, alpha, beta ]
55
env:
66
CI_XCODE_11: '/Applications/Xcode_11.7.app/Contents/Developer'
7-
CI_XCODE_13: '/Applications/Xcode_13.4.1.app/Contents/Developer'
7+
CI_XCODE_14: '/Applications/Xcode_14.2.app/Contents/Developer'
88

99
jobs:
1010
release:
@@ -85,29 +85,35 @@ jobs:
8585
publish-docs:
8686
needs: release
8787
if: needs.release.outputs.current_tag != ''
88-
runs-on: macos-11
88+
runs-on: macos-12
8989
steps:
9090
- name: Checkout repository
91-
uses: actions/checkout@v2
91+
uses: actions/checkout@v3
9292
with:
9393
ref: ${{ needs.release.outputs.current_tag }}
94+
- name: Setup Ruby
95+
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
9496
- name: Cache Gems
9597
id: cache-gems
96-
uses: actions/cache@v2
98+
uses: actions/cache@v3
9799
with:
98100
path: vendor/bundle
99101
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
100102
restore-keys: |
101103
${{ runner.os }}-gem-
102-
- name: Install Bundle
104+
- name: Submodules
103105
run: |
106+
git submodule update --init --recursive
107+
sudo gem install bundler
104108
bundle config path vendor/bundle
105-
bundle install
109+
- name: Bundle Install
110+
if: steps.cache-gems.outputs.cache-hit != 'true'
111+
run: bundle install
106112
- name: Create Jazzy Docs
107113
run: |
108114
./Scripts/jazzy.sh
109115
env:
110-
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
116+
DEVELOPER_DIR: ${{ env.CI_XCODE_14 }}
111117
- name: Deploy Jazzy Docs
112118
uses: peaceiris/actions-gh-pages@v3
113119
with:

.github/workflows/release-manual-docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ jobs:
2727
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
2828
restore-keys: |
2929
${{ runner.os }}-gem-
30-
- name: Install Bundle
30+
- name: Submodules
3131
run: |
3232
git submodule update --init --recursive
3333
sudo gem install bundler
3434
bundle config path vendor/bundle
35-
bundle install
35+
- name: Bundle Install
36+
if: steps.cache-gems.outputs.cache-hit != 'true'
37+
run: bundle install
3638
- name: Create Jazzy Docs
3739
run: |
3840
./Scripts/jazzy.sh

0 commit comments

Comments
 (0)