keine verdreckte doc
This commit is contained in:
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@@ -189,30 +189,6 @@ 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
|
||||
working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
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
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ../docs-deploy
|
||||
publish_branch: gh-pages
|
||||
force_orphan: true
|
||||
docker-build:
|
||||
name: Build and Push Docker Image
|
||||
needs: [detect-project, build, set-tag]
|
||||
|
Reference in New Issue
Block a user