-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from srt32/st-build-docs-in-actions
Build docs on Actions
- Loading branch information
Showing
2 changed files
with
33 additions
and
27 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
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,33 @@ | ||
name: Docs Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
runs-on: ubuntu-latest | ||
name: Build Docs | ||
- uses: actions/checkout@master | ||
- name: Setup Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.x | ||
- uses: actions/cache@v2 | ||
with: | ||
path: vendor/bundle | ||
key: gems-build-rails-main-ruby-2.7.x-${{ hashFiles('**/Gemfile.lock') }} | ||
- name: Generate docs and statuses | ||
run: | | ||
gem install bundler:2.2.9 | ||
bundle config path vendor/bundle | ||
bundle update | ||
bundle exec rake docs:build | ||
bundle exec rake statuses:dump | ||
- name: Commit & Push Docs Data | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Actions Auto Build" | ||
git add -f docs static/statuses.json | ||
git commit -m "docs: build docs" || true | ||
git push --force origin HEAD:refs/heads/main |
f17d8cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: