Merge pull request #6420 from EricFromCanada/apidoc-workflow
workflows/apidoc: amalgamate steps to preserve current directory
This commit is contained in:
commit
133ea951c4
13
.github/workflows/apidoc.yml
vendored
13
.github/workflows/apidoc.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: '>=2.3'
|
version: '>=2.3'
|
||||||
|
|
||||||
- name: Set up repositories
|
- name: Build and push API docs
|
||||||
run: |
|
run: |
|
||||||
# clone rubydoc.brew.sh with SSH so we can push back
|
# clone rubydoc.brew.sh with SSH so we can push back
|
||||||
git clone git@github.com:Homebrew/rubydoc.brew.sh
|
git clone git@github.com:Homebrew/rubydoc.brew.sh
|
||||||
@ -26,18 +26,9 @@ jobs:
|
|||||||
# clone latest Homebrew/brew
|
# clone latest Homebrew/brew
|
||||||
git clone --depth=1 https://github.com/Homebrew/brew
|
git clone --depth=1 https://github.com/Homebrew/brew
|
||||||
|
|
||||||
- name: Install RubyGems
|
# run rake to build documentation
|
||||||
run: |
|
|
||||||
# silence bundler complaining about being root
|
|
||||||
mkdir ~/.bundle
|
|
||||||
echo 'BUNDLE_SILENCE_ROOT_WARNING: "1"' > ~/.bundle/config
|
|
||||||
|
|
||||||
gem install bundler
|
gem install bundler
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install --jobs 4 --retry 3
|
||||||
|
|
||||||
- name: Build and push API docs
|
|
||||||
run: |
|
|
||||||
# run rake to build documentation
|
|
||||||
bundle exec rake
|
bundle exec rake
|
||||||
|
|
||||||
# commit and push generated files
|
# commit and push generated files
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user