File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,23 @@ jobs:
15
15
id-token : write
16
16
contents : write
17
17
steps :
18
- - uses : actions/checkout@v2
19
- -
uses :
XAMPPRocky/[email protected]
18
+ - uses : actions/checkout@v3
19
+ - name : Install mdbook
20
+ run : curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.22/mdbook-v0.4.22-x86_64-unknown-linux-gnu.tar.gz | tar -xz
21
+ - name : Build book
22
+ run : ./mdbook build
23
+ - name : Deploy book
24
+ uses : rust-lang/simpleinfra/github-actions/static-websites@master
20
25
with :
21
- token : ${{ secrets.GITHUB_TOKEN }}
22
- build_only : ${{ github.ref != 'refs/heads/master' }}
26
+ deploy_dir : book
27
+ github_token : " ${{ secrets.GITHUB_TOKEN }}"
28
+ if : github.ref == 'refs/heads/master'
23
29
- name : Configure AWS credentials
24
30
if : github.ref == 'refs/heads/master'
25
31
uses : aws-actions/configure-aws-credentials@v1
26
32
with :
27
33
role-to-assume : arn:aws:iam::890664054962:role/forge-rust-lang-org-ci
28
34
aws-region : us-east-1
29
- - run : aws cloudfront create-invalidation --distribution-id E12A3GKHZSREHP --paths "/*"
35
+ - name : Invalidate CloudFront cache
36
+ run : aws cloudfront create-invalidation --distribution-id E12A3GKHZSREHP --paths "/*"
30
37
if : github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments