diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 984bceefb21..aa2c7a86208 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -50,6 +50,14 @@ jobs: - name: Build Sway std library run: forc doc --manifest-path ./sway-lib-std + - name: Deploy master std + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./sway-lib-std/out/doc + destination_dir: master + if: github.ref == 'refs/heads/master' + - name: Deploy master book uses: peaceiris/actions-gh-pages@v3 with: @@ -66,14 +74,6 @@ jobs: destination_dir: master/reference if: github.ref == 'refs/heads/master' - - name: Deploy master std - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./sway-lib-std/out/doc - destination_dir: master - if: github.ref == 'refs/heads/master' - - name: Create master book redirect file run: | mkdir ./tmp