Skip to content

Commit

Permalink
feat: make fresh source docs in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Nov 11, 2024
1 parent 5c3846d commit 6f4aa8a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
cache: npm
cache-dependency-path: package-lock.json

- name: Clear old docs references
run: make fresh

- name: 🤔 Sync latest Upstream
run: make sync-docs

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-netlify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Clear old docs references
run: make fresh

- name: Sync latest Upstream
run: make sync-docs

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-verify-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
cache: npm
cache-dependency-path: package-lock.json

- name: Clear old docs references
run: make fresh

- name: pull docs from current latest
run: make sync-docs

Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ dev-docs:
latest-commits:
@bash ./scripts/sync-latest-commits.sh

## fresh: Clear the current base doc source files for upstream repos
# this is used for deployments to main to not hit divergent branch issues.
.PHONY: fresh
fresh:
rm -rf ./dsource-cosmos-sdk/
rm -rf ./dsource-cosmos-sdk-main/
rm -rf ./dsource-ibc-go/
rm -rf ./dsource-onboarding/
rm -rf ./dsource-cometbft/

## sync-docs: Grab the latest upstream documentation
.PHONY: sync-docs
sync-docs:
Expand Down

0 comments on commit 6f4aa8a

Please sign in to comment.