From de80a9675270edb6ebdf83f862f8bbb3523aa019 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Thu, 21 May 2020 10:13:12 -0700 Subject: [PATCH] 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. --- .github/workflows/publish-docs.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 3acb13decfdf..ed7d0ae99524 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -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/