Update jekyll action to push the formatted site (#20)

This is a mix of fixes to the action itself and the jekyll files to make everything work.
This commit is contained in:
Jon Meow
2020-05-21 10:13:12 -07:00
committed by GitHub
parent 67eb4521c8
commit de80a96752
+13 -4
View File
@@ -16,9 +16,18 @@ jobs:
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- uses: actions/setup-ruby@v1
with:
ruby-version: 2.6
- run: gcloud info
- run: echo Add a setup step here
- run: echo add a build step here
- name: Install bundler
run: gem install bundler
working-directory: src/jekyll
- name: Install jekyll and dependencies
run: bundle install --jobs 4 --retry 3
working-directory: src/jekyll
- name: Build HTML pages
run: make site
working-directory: src/jekyll
- name: Publish to www.carbon-lang.dev
run: |
gsutil cp -R docs/* gs://www.carbon-lang.dev/test-doc-root/
run: gsutil cp -R src/jekyll/.gen-site/* gs://www.carbon-lang.dev/