3 Commits

Author SHA1 Message Date
8fa7866cc2 creating directory for doc
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m3s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m42s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 4m22s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m8s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-01 22:57:06 +02:00
238ad87119 replaced documentation post with seperate step
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m5s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m47s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 4m20s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m4s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-01 22:42:35 +02:00
d584e21fd9 replaced documentation post with seperate step 2025-10-01 22:33:00 +02:00

View File

@@ -187,19 +187,32 @@ jobs:
with: with:
name: ${{ matrix.artifact-name }} name: ${{ matrix.artifact-name }}
path: | 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 - name: Build documentation
working-directory: ${{ needs.detect-project.outputs.project-dir }} working-directory: ${{ needs.detect-project.outputs.project-dir }}
run: cargo doc --no-deps run: |
cargo doc --no-deps --all-features
echo "Documentation built in: $PWD/target/doc"
ls -la target/doc/
- name: Prepare documentation for deployment
working-directory: ${{ needs.detect-project.outputs.project-dir }}
run: |
# Create a temporary directory for deployment
mkdir -p ../docs-deploy
cp -r target/doc/* ../docs-deploy/
# Create redirect index if needed
echo '<meta http-equiv="refresh" content="0; url=${{ needs.detect-project.outputs.project-name }}/index.html">' > ../docs-deploy/index.html
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ needs.detect-project.outputs.project-dir }}/target/doc publish_dir: ../docs-deploy
publish_branch: gh-pages publish_branch: gh-pages
force_orphan: true
docker-build: docker-build:
name: Build and Push Docker Image name: Build and Push Docker Image
needs: [detect-project, build, set-tag] needs: [detect-project, build, set-tag]