Skip to content

Commit

Permalink
finalize docs deploy strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanku committed Jan 10, 2025
1 parent 2208816 commit 50a54dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- run: just build
working-directory: docs/api
- run: |
rm -rf /tools/C/rohankumar/substrate_docs_public/api/${{ github.ref_name }} && |
rm -rf /tools/C/rohankumar/substrate_docs_public/api/${{ github.ref_name }} && \
cp -r target/doc /tools/C/rohankumar/substrate_docs_public/api/${{ github.ref_name }}
working-directory: docs/api
- run: flyctl deploy --remote-only --detach
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
find . -not -path './branch/*' -not -name "fly.toml" -not -name "Dockerfile" -delete
working-directory: /tools/C/rohankumar/substrate_docs_public/docusaurus
- run:
rm -rf /${{ github.ref_name }} && |
rm -rf /${{ github.ref_name }} && \
cp -r target/doc/* /tools/C/rohankumar/substrate_docs_public/docusaurus
working-directory: docs/docusaurs
- run: flyctl deploy --remote-only --detach
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- run: just build
working-directory: docs/api
- run: |
rm -rf ${{ env.PUBLIC_DOCS_DIR }}/api/${{ inputs.name || github.ref_name }} && |
rm -rf ${{ env.PUBLIC_DOCS_DIR }}/api/${{ inputs.name || github.ref_name }} && \
cp -r target/doc ${{ env.PUBLIC_DOCS_DIR }}/api/${{ inputs.name || github.ref_name }}
working-directory: docs/api
- run: flyctl deploy --remote-only --detach
Expand All @@ -46,7 +46,7 @@ jobs:
- run: yarn build
working-directory: docs/docusaurus
- run: |
rm -rf ${{ env.PUBLIC_DOCS_DIR }}/docusaurus/branch/${{ inputs.name || github.ref_name }} && |
rm -rf ${{ env.PUBLIC_DOCS_DIR }}/docusaurus/branch/${{ inputs.name || github.ref_name }} && \
cp -r target/doc ${{ env.PUBLIC_DOCS_DIR }}/docusaurus/branch/${{ inputs.name || github.ref_name }}
working-directory: docs/docusaurus
- run: flyctl deploy --remote-only --detach
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-release-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: just build
working-directory: docs/api
- run: |
rm -rf /tools/C/rohankumar/substrate_docs_public/api/release && |
rm -rf /tools/C/rohankumar/substrate_docs_public/api/release && \
cp -r target/doc /tools/C/rohankumar/substrate_docs_public/api/release
working-directory: docs/api
- run: flyctl deploy --remote-only --detach
Expand Down

0 comments on commit 50a54dc

Please sign in to comment.