File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : documentation
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches :
10+ - main
11+ schedule :
12+ - cron : ' 0 18 * * *'
13+
14+ jobs :
15+ generate :
16+ name : Generate API documentation
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout sources
20+ uses : actions/checkout@v4
21+ with :
22+ persist-credentials : false
23+
24+ - name : Install rust toolchain
25+ uses : dtolnay/rust-toolchain@nightly
26+
27+ - name : Install zola
28+ uses : taiki-e/install-action@v2
29+ with :
30+ tool :
[email protected] # Matched to rustls repo 31+
32+ - name : Generate API JSON data
33+ run :
34+ cargo run -p rustls-ffi-tools --bin docgen > website/static/api.json
35+
36+ - name : Generate site pages
37+ run : |
38+ cd website && zola build --output-dir ../target/website/
39+
40+ - name : Package and upload artifact
41+ uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : ./target/website/
44+
45+ deploy :
46+ name : Deploy
47+ runs-on : ubuntu-latest
48+ if : github.repository == 'rustls/rustls-ffi'
49+ needs : generate
50+ permissions :
51+ pages : write
52+ id-token : write
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
56+ steps :
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments