From 1798c1270b0948ac2500bf38638ec8f95462e886 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Wed, 1 Oct 2025 22:21:44 +0200 Subject: [PATCH] added right path for cargo doc push --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd3ab9b..00a8b10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -134,7 +134,7 @@ jobs: # working-directory: ${{ needs.detect-project.outputs.project-dir }} # run: cargo audit --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2020-0159 - build: + build: name: Build (${{ matrix.target }}) needs: [detect-project, test] if: ${{ !failure() && !cancelled() }} @@ -187,16 +187,17 @@ jobs: with: name: ${{ matrix.artifact-name }} path: | - ${{ needs.detect-project.outputs.project-dir }}/target/${{ matrix.target }}/release/${{ needs.detect-project.outputs.project-name }}${{ matrix.os == 'windows' && '.exe' || '' }} + ${{ needs.detect-project.outputs.project-dir }}/target/${{ matrix.target }}/release/${{ needs.detect-project.outputs.project-name }}${{ matrix.os == 'windows' && '.exe' || '' }}" - name: Build documentation + working-directory: ${{ needs.detect-project.outputs.project-dir }} # ← ADD THIS run: cargo doc --no-deps - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ${{ needs.detect-project.outputs.project-dir }}/target/doc + publish_dir: ${{ needs.detect-project.outputs.project-dir }}/target/doc # ← FIX THIS PATH publish_branch: gh-pages docker-build: