Skip to content

Commit

Permalink
Fix Rust docs broken in main branch (#1684)
Browse files Browse the repository at this point in the history
* Fix Rust docs broken in main branch

* deploy docs when workflow file changes

---------

Co-authored-by: William Freudenberger <[email protected]>
  • Loading branch information
gpmayorga and wischli authored Jan 13, 2024
1 parent f101348 commit 6bdbf67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Rustdoc
on:
push:
branches: [main]
pull_request:
paths:
- ".github/workflows/deploy-docs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -55,11 +58,11 @@ jobs:
done
- name: upload Docs files
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3.0
with:
path: ./target/doc

- name: Deploy Docs
# if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@7a9bd943aa5e5175aeb8502edcc6c1c02d398e10 # v4.0.2

0 comments on commit 6bdbf67

Please sign in to comment.