-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify local and GitHub Actions website generation flow (#274)
- Loading branch information
Showing
6 changed files
with
45 additions
and
22 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 |
---|---|---|
|
@@ -16,22 +16,24 @@ jobs: | |
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- uses: ruby/[email protected] | ||
with: | ||
working-directory: ./website | ||
bundler-cache: true | ||
- name: Configure Github Pages | ||
uses: actions/[email protected] | ||
- name: Generate documentation | ||
run: ./generate-docs.sh | ||
- name: Build website with Jekyll | ||
uses: actions/[email protected] | ||
with: | ||
source: website/ | ||
destination: ./_site | ||
working-directory: ./website | ||
run: bundle exec jekyll build | ||
- name: Validate HTML output | ||
uses: anishathalye/[email protected] | ||
with: | ||
directory: ./_site | ||
check_external_hash: false | ||
working-directory: ./website | ||
run: bundle exec htmlproofer --check-external-hash false ./_site | ||
- name: Upload website as artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: ./website/_site | ||
deploy: | ||
if: github.ref == 'refs/heads/master' | ||
needs: build | ||
|
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 @@ | ||
3.1.2 |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
ruby File.read(".ruby-version").strip | ||
|
||
source "https://rubygems.org" | ||
gem "github-pages", "227" | ||
gem "html-proofer", "4.4.1" | ||
gem "jekyll-remote-theme", "0.4.3" | ||
gem "rake", "13.0.6" | ||
gem "jekyll", "4.2.2" | ||
gem "jekyll-sitemap", "1.4" | ||
gem "just-the-docs", "0.4.0.rc2" | ||
gem "webrick", "1.7" |
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 |
---|---|---|
|
@@ -6,13 +6,8 @@ description: >- | |
Error Prone extensions: extra bug checkers and a large battery of Refaster | ||
templates. | ||
# XXX: Investigate dropping the remote theme by instead managing just-the-docs | ||
# using Bundler. This requires changes to the build setup. The upshot is that | ||
# local and CI build environments would then be in sync. | ||
# https://github.com/PicnicSupermarket/error-prone-support/pull/253#discussion_r982709523 | ||
remote_theme: just-the-docs/[email protected] | ||
theme: just-the-docs | ||
plugins: | ||
- jekyll-remote-theme | ||
- jekyll-sitemap | ||
|
||
# Files and directories not to be deployed through GitHub pages. | ||
|