@@ -55,20 +55,12 @@ jobs:
5555 - name : Build Sway std library
5656 run : forc doc --path ./sway-lib-std
5757
58- - name : Move assets into std directory
59- run : |
60- mv ./sway-lib-std/out/doc/static.files ./sway-lib-std/out/doc/std/
61- mv ./sway-lib-std/out/doc/search.js ./sway-lib-std/out/doc/std/
62- # Fix relative paths in HTML files
63- find ./sway-lib-std/out/doc/std -name "*.html" -type f -exec sed -i 's|../static\.files/|static.files/|g' {} \;
64- find ./sway-lib-std/out/doc/std -name "*.html" -type f -exec sed -i 's|../search\.js|search.js|g' {} \;
65-
6658 - name : Deploy master std
6759 uses : peaceiris/actions-gh-pages@v3
6860 with :
6961 github_token : ${{ secrets.GITHUB_TOKEN }}
70- publish_dir : ./sway-lib-std/out/doc/std
71- destination_dir : master/std
62+ publish_dir : ./sway-lib-std/out/doc
63+ destination_dir : master
7264 if : github.ref == 'refs/heads/master'
7365
7466 - name : Deploy master book
@@ -133,7 +125,7 @@ jobs:
133125 uses : peaceiris/actions-gh-pages@v3
134126 with :
135127 github_token : ${{ secrets.GITHUB_TOKEN }}
136- publish_dir : ./sway-lib-std/out/doc
128+ publish_dir : ./sway-lib-std/out/doc/std
137129 destination_dir : ${{ steps.branch_name.outputs.BRANCH_NAME }}/std
138130 if : startsWith(github.ref, 'refs/tags')
139131
0 commit comments