diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index e4caa8d3d..194505477 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,9 +2,9 @@ name: Cargo Create Docs on: push: - branches: [nik-add-docs-in-CI] + branches: [main] pull_request: - branches: [nik-add-docs-in-CI] + branches: [main] env: CARGO_TERM_COLOR: always @@ -52,4 +52,4 @@ jobs: git commit -m "Documentation" shell: bash # Necessary for `shopt` to work - run: git push -f origin gh-pages:gh-pages - # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} diff --git a/doc_preparation.sh b/doc_preparation.sh deleted file mode 100755 index f197522fb..000000000 --- a/doc_preparation.sh +++ /dev/null @@ -1,2 +0,0 @@ -cargo doc --no-deps -echo "" > target/doc/index.html \ No newline at end of file