diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 2c8156128..3c827aeef 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -120,16 +120,19 @@ jobs:
- name: Update sitemap.xml
run: chmod +x updateSitemap.sh && ./updateSitemap.sh ${{ env.ASSEMBLE_DIR }}/sitemap.xml ${{ env.ASSEMBLE_DIR }}/api
+ - name: Assemble file
+ run: cd ${{ env.ASSEMBLE_DIR }} && zip -r ../${{ env.ASSEMBLE_ARTIFACT }} .
+
- name: Save assembled artifact
uses: actions/upload-artifact@v4
with:
name: kotlinx-rpc-assembled
path: |
- ${{ env.ASSEMBLE_DIR }}
+ ${{ env.ASSEMBLE_ARTIFACT }}
retention-days: 7
deploy:
- if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && !inputs.dry_run
+ if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release-') && !inputs.dry_run
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
@@ -142,7 +145,7 @@ jobs:
name: kotlinx-rpc-assembled
- name: Unzip artifact
- run: unzip -O UTF-8 -qq '${{ env.ASSEMBLE_ARTIFACT }}' -d ${{ env.ASSEMBLE_DIR }}
+ run: unzip -O UTF-8 -qq '${{ env.ASSEMBLE_ARTIFACT }}' -d publish
- name: Setup Pages
uses: actions/configure-pages@v5
@@ -150,14 +153,14 @@ jobs:
- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
- path: ${{ env.ASSEMBLE_DIR }}
+ path: publish
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
publish-indexes:
- if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && !inputs.dry_run
+ if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release-') && !inputs.dry_run
needs: [ build, test, assemble, deploy ]
runs-on: ubuntu-latest
container:
@@ -166,7 +169,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v4
with:
- name: kotlinx-rpc-assembled
+ name: kotlinx-rpc
- name: Unzip artifact
run: |
unzip -O UTF-8 -qq '${{ env.ALGOLIA_ARTIFACT }}' -d algolia-indexes
diff --git a/docs/pages/kotlinx-rpc/cfg/buildprofiles.xml b/docs/pages/kotlinx-rpc/cfg/buildprofiles.xml
index 1daedb4f2..0d64d0646 100644
--- a/docs/pages/kotlinx-rpc/cfg/buildprofiles.xml
+++ b/docs/pages/kotlinx-rpc/cfg/buildprofiles.xml
@@ -1,6 +1,6 @@
2000-2025 JetBrains s.r.o.
Contribute to kotlinx.rpc
Slack Community
- API Reference
+ API Reference
diff --git a/docs/pages/kotlinx-rpc/rpc.tree b/docs/pages/kotlinx-rpc/rpc.tree
index 5e0c85269..7ae8df4a2 100644
--- a/docs/pages/kotlinx-rpc/rpc.tree
+++ b/docs/pages/kotlinx-rpc/rpc.tree
@@ -50,5 +50,5 @@
-
+