mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 23:02:42 +00:00
The jekyll build keeps top-level without expanding them. So the site works, but the publish copy failed because some symlinks to files that aren't visible through the site (like CONTRIBUTING.md, versus the site's CONTRIBUTING.html) didn't work.
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
name: Publish Carbon Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- trunk
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository == 'carbon-language/carbon-lang'
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
|
with:
|
|
version: '285.0.0'
|
|
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
|
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
|
|
- name: Install bundler
|
|
run: gem install bundler
|
|
working-directory: website/jekyll
|
|
- name: Install jekyll and dependencies
|
|
run: bundle install --jobs 4 --retry 3
|
|
working-directory: website/jekyll
|
|
- name: Build HTML pages
|
|
run: make build
|
|
working-directory: website/jekyll
|
|
- name: Publish to www.carbon-lang.dev
|
|
run: gsutil cp -R website/jekyll/build-site/* gs://www.carbon-lang.dev/
|