Explorar o código

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.
Jon Meow %!s(int64=6) %!d(string=hai) anos
pai
achega
de80a96752
Modificáronse 1 ficheiros con 13 adicións e 4 borrados
  1. 13 4
      .github/workflows/publish-docs.yaml

+ 13 - 4
.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/