-
Notifications
You must be signed in to change notification settings - Fork 102
87 lines (66 loc) · 4.54 KB
/
docbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build and Deploy Docs Beta Branch
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
# - name: Download Latest Awesome repo README
# run: curl https://raw.githubusercontent.com/osmosis-labs/awesome/main/README.md > docs/awesome/README.md
# - name: Download superfluid docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/superfluid/spec/README.md > docs/osmosis-core/modules/spec-superfluid.md
# - name: Download pool incentives docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/pool-incentives/spec/README.md > docs/osmosis-core/modules/spec-pool-incentives.md
# - name: Download mint docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/mint/spec/README.md > docs/osmosis-core/modules/spec-mint.md
# - name: Download lockup docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/lockup/spec/README.md > docs/osmosis-core/modules/spec-lockup.md
# - name: Download gamm docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/gamm/spec/README.md > docs/osmosis-core/modules/spec-gamm.md
# - name: Download epochs docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/epochs/spec/README.md > docs/osmosis-core/modules/spec-epochs.md
# - name: Download txfees docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/txfees/spec/README.md > docs/osmosis-core/modules/spec-txfees.md
# - name: Download incentives docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis/main/x/incentives/spec/README.md > docs/osmosis-core/modules/spec-incentives.md
# - name: Download localOsmosis docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/LocalOsmosis/main/README.md > docs/developing/tools/localosmosis.md
# - name: Download OsmoJS docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmojs/main/README.md > docs/developing/tools/osmojs.md
#Beaker docs
# - name: Download Beaker docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/beaker/main/README.md > docs/developing/tools/beaker/README.md
# - name: Change Beaker Logo to Absolute path
# run: sed -i 's/assets\/beaker.png/https:\/\/raw.githubusercontent.com\/osmosis-labs\/beaker\/main\/assets\/beaker.png/g' docs/developing/tools/beaker/README.md
#Front-end docs
# - name: Frontend docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/osmosis-frontend/master/README.md > docs/developing/web-dev-guide.md
# - name: Clean up front-end title
# run: sed -i 's/Osmosis Frontend 👩🔬⚗️🧪/Osmosis Web Interface/g' docs/developing/web-dev-guide.md
# - name: Removing all emojis from titles
# run: sed -i 's/🤠\|🚀\|👩🔬\|⚗️\|🧪\|👨💻\|💻/ /g' docs/developing/web-dev-guide.md
# Copy Infra docs
# - name: Download infra docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/infrastructure/main/digitalocean/single-rpc/README.md > docs/infra/do/loadbalanced-rpc.md
# - name: Download infra docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/infrastructure/main/digitalocean/single-rpc-with-floating-ip/README.md > docs/infra/do/single-rpc-with-floating-ip.md
# - name: Download infra docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/infrastructure/main/digitalocean/single-rpc-with-monitor-alerts/README.md > docs/infra/do/single-rpc-with-monitor-alerts.md
# - name: Download infra docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/infrastructure/main/digitalocean/loadbalanced-rpc/README.md > docs/infra/do/loadbalanced-rpc.md
# - name: Download infra docs
# run: curl https://raw.githubusercontent.com/osmosis-labs/infrastructure/main/digitalocean/loadbalanced-rpc-with-monitor-alerts/README.md > docs/infra/do/loadbalanced-rpc-with-monitor-alerts.md
- name: Install and Build 🔧 # This will create version inside the 'build' folder.
run: |
yarn install
yarn build
- name: Deploy to Beta Branch 🚀
uses: JamesIves/[email protected]
with:
branch: beta-build # The branch the action should deploy to.
folder: build