Skip to content

Prefer specific feature test macros (#358) #215

Prefer specific feature test macros (#358)

Prefer specific feature test macros (#358) #215

# Copyright 2022 Aurora Operations, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: deploy-doc-site
on:
push:
branches:
- main
jobs:
deploy-doc-site:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b #v4.1.5
with:
# This will fetch all history for the repo: all branches and tags. We
# need this in order for `git describe` to work correctly when
# creating the manifest for `au.hh` in the doc site. However, as the
# repo grows, this may become less ideal over time.
#
# It probably won't ever be a _hard_ blocker: the whole checkout step
# currently takes 1 second, and we don't expect the repo to grow by
# orders of magnitude. That said, if there's ever a better
# solution---say, the ability to fetch `main` back to the latest
# tag---then it would be nice to switch to that someday.
fetch-depth: 0
- uses: fregante/setup-git-user@2e28d51939d2a84005a917d2f844090637f435f8 #v1.1.0
- name: Build and deploy doc site
run: bazel run //:mike -- deploy --push main