mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 20:32:56 +00:00
* ci: remove ubuntu 20.04 runners * chore: update ec2-github-runner action as author suggests * fix: use latest ubuntu image for fuzz test * Update action.yml * Update action.yml --------- Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com> Co-authored-by: liyang <daviderli614@gmail.com>
41 lines
937 B
YAML
41 lines
937 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'config/**'
|
|
- '**.md'
|
|
- '.dockerignore'
|
|
- 'docker/**'
|
|
- '.gitignore'
|
|
|
|
name: Build API docs
|
|
|
|
jobs:
|
|
apidoc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: arduino/setup-protoc@v3
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
- run: cargo doc --workspace --no-deps --document-private-items
|
|
- run: |
|
|
cat <<EOF > target/doc/index.html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="refresh" content="0; url='greptime/'" />
|
|
</head>
|
|
<body></body></html>
|
|
EOF
|
|
- name: Publish dist directory
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: target/doc
|
|
single-commit: true
|