File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy to static hosting
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ environment :
7+ description : Environment to deploy to.
8+ default : docs-dev
9+ required : true
10+ type : environment
11+ push :
12+
13+ permissions :
14+ contents : read
15+ id-token : write
16+
17+ jobs :
18+ build :
19+ name : Build site
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v6
24+ with :
25+ submodules : true
26+ - name : Copy assets from submodules
27+ run : rsync -av --progress */**/docs/assets/ docs/assets --exclude .git --exclude .idea --exclude docs
28+ - name : Set up Python
29+ uses : actions/setup-python@v6
30+ with :
31+ python-version : 3.x
32+ - name : Create cache ID
33+ run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
34+ - name : Cache Python dependencies
35+ uses : actions/cache@v5
36+ with :
37+ key : mkdocs-material-${{ env.cache_id }}
38+ path : .cache
39+ restore-keys : |
40+ mkdocs-material-
41+ - name : Install python dependencies
42+ run : |
43+ pip install \
44+ mkdocs-material \
45+ markdown-callouts \
46+ mdx_truly_sane_lists \
47+ mkdocs-nav-weight \
48+ pymdown-extensions \
49+ plantuml_markdown
50+ - name : Build site
51+ run : mkdocs build
52+ - uses : actions/upload-artifact@v7
53+ with :
54+ name : site
55+ path : site/
56+
57+ deploy :
58+ needs : build
59+ uses : codeforamerica/shared-services-infra/.github/workflows/static-deploy-static.yaml@static-site-support
60+ with :
61+ environment : ${{ inputs.environment }}
62+ artifact_name : site
63+ secrets : inherit
You can’t perform that action at this time.
0 commit comments