Skip to content

Commit df7f0b2

Browse files
authored
docs: deploy to github pages (#8321)
1 parent eafd1bc commit df7f0b2

File tree

3 files changed

+32
-72
lines changed

3 files changed

+32
-72
lines changed

.circleci/config.yml

-64
This file was deleted.

.github/workflows/docs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

Makefile

+1-8
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,7 @@ build-docs:
201201
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
202202
cp ~/output/$${path_prefix}/index.html ~/output ; \
203203
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
212205

213206
###############################################################################
214207
### Tests & Simulation ###

0 commit comments

Comments
 (0)