Commit df7f0b2 1 parent eafd1bc commit df7f0b2 Copy full SHA for df7f0b2
File tree 3 files changed +32
-72
lines changed
3 files changed +32
-72
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Documentation
2
+ # This job builds and deploys documenation to github pages.
3
+ # It runs on every push to master.
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ build-and-deploy :
11
+ runs-on : ubuntu-latest
12
+ container :
13
+ image : tendermintdev/docker-website-deployment
14
+ steps :
15
+ - name : Checkout 🛎️
16
+ uses : actions/checkout@v2.3.1
17
+ with :
18
+ persist-credentials : false
19
+ fetch-depth : 0
20
+
21
+ - name : Install and Build 🔧
22
+ run : |
23
+ apk add rsync
24
+ make build-docs LEDGER_ENABLED=false
25
+
26
+ - name : Deploy 🚀
27
+ uses : JamesIves/github-pages-deploy-action@3.7.1
28
+ with :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ BRANCH : gh-pages
31
+ FOLDER : ~/output
Original file line number Diff line number Diff line change @@ -201,14 +201,7 @@ build-docs:
201
201
cp -r .vuepress/dist/* ~ /output/$$ {path_prefix}/ ; \
202
202
cp ~ /output/$$ {path_prefix}/index.html ~ /output ; \
203
203
done < versions ;
204
-
205
- sync-docs :
206
- cd ~ /output && \
207
- echo " role_arn = ${DEPLOYMENT_ROLE_ARN} " >> /root/.aws/config ; \
208
- echo " CI job = ${CIRCLE_BUILD_URL} " >> version.html ; \
209
- aws s3 sync . s3://${WEBSITE_BUCKET} --profile terraform --delete ; \
210
- aws cloudfront create-invalidation --distribution-id ${CF_DISTRIBUTION_ID} --profile terraform --path " /*" ;
211
- .PHONY : sync-docs
204
+ .PHONY : build-docs
212
205
213
206
# ##############################################################################
214
207
# ## Tests & Simulation ###
You can’t perform that action at this time.
0 commit comments