From 238ad8711983d27ffad228d31b2b24e794646d33 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Wed, 1 Oct 2025 22:42:35 +0200 Subject: [PATCH] replaced documentation post with seperate step --- .github/workflows/build.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 022524d..8c89c4e 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,27 +187,11 @@ 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' || '' }} - documentation: - name: Build and Deploy Documentation - needs: [detect-project, test] - if: ${{ !failure() && !cancelled() && github.event_name == 'push' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install Rust - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - name: Build documentation working-directory: ${{ needs.detect-project.outputs.project-dir }} - run: | - cargo doc --no-deps --all-features - # Create redirect index if needed - echo '' > target/doc/index.html + run: cargo doc --no-deps - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 @@ -215,7 +199,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ needs.detect-project.outputs.project-dir }}/target/doc publish_branch: gh-pages - force_orphan: true docker-build: name: Build and Push Docker Image