Repository navigation
70 lines (63 loc) · 2.05 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
70 lines (63 loc) · 2.05 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
# Deploys the docs to materialize.com/docs.
name: Deploy docs
on:
push:
branches: [main]
paths:
- doc/user/**
- src/sql-lexer/src/keywords.txt
- ci/builder/Dockerfile
- ci/deploy_website/**
- .github/workflows/deploy-docs.yml
workflow_dispatch:
concurrency:
group: deploy-docs
cancel-in-progress: false
permissions: {}
jobs:
lint:
name: Lint docs
runs-on: ubuntu-26.04
timeout-minutes: 30
permissions:
contents: read # check out the repository
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Same check and image as the Buildkite lint-docs step.
- run: bin/ci-builder run stable --no-secrets ci/test/lint-docs.sh
deploy:
name: Deploy docs
needs: lint
runs-on: ubuntu-26.04
timeout-minutes: 30
# Restricted to main; the AWS role trusts only this environment.
environment: docs-production
permissions:
contents: read # check out the docs
id-token: write # assume GithubActionsDocsDeploy
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
sparse-checkout: |
ci/builder
ci/deploy_website
doc/user
misc/shlib
src/sql-lexer
- run: ci/deploy_website/install-tools.sh
- uses: aws-actions/configure-aws-credentials@45666896f5d8e0f10ae255413f3a4cdd03bdc8f5 # v6.3.1
with:
role-to-assume: arn:aws:iam::834237029485:role/GithubActionsDocsDeploy
aws-region: us-east-1
- run: ci/deploy_website/website.sh