mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 21:12:38 +00:00
* Add github action to publish docs. This change add a placeholder action which: (A) Authenticates with gcloud using the appropriate GCP AS. (B) Copies the docs/ folder as-is into www.carbon-lang.dev/test-doc-root/
25 lines
696 B
YAML
25 lines
696 B
YAML
name: Publish Carbon Documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
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
|
|
- run: gcloud info
|
|
- run: echo Add a setup step here
|
|
- run: echo add a build step here
|
|
- name: Publish to www.carbon-lang.dev
|
|
run: |
|
|
gsutil cp -R docs/* gs://www.carbon-lang.dev/test-doc-root/
|