diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd33ba8..b897ade 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -189,6 +189,16 @@ jobs: path: | ${{ needs.detect-project.outputs.project-dir }}/target/${{ matrix.target }}/release/${{ needs.detect-project.outputs.project-name }}${{ matrix.os == 'windows' && '.exe' || '' }} + - name: Build documentation + run: cargo doc --no-deps + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc + publish_branch: gh-pages + docker-build: name: Build and Push Docker Image needs: [detect-project, build, set-tag]