-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (40 loc) · 1.69 KB
/
deploy-doc-site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 #v2.6.0
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