ci(docs): fixed copy arguments for gh-pages

This commit is contained in:
Anand Balakrishnan 2023-10-06 14:08:13 -07:00
parent 1a927f89f5
commit 411b144761
No known key found for this signature in database

View file

@ -103,11 +103,11 @@ jobs:
- name: Build Python package - name: Build Python package
run: maturin develop --release --manifest-path pyargus/Cargo.toml run: maturin develop --release --manifest-path pyargus/Cargo.toml
- name: Build HTML docs - name: Build HTML docs
run: sphinx-build -b html docs docs/_build/${{ github.ref_name }} run: sphinx-build -b html docs docs/_build/
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/ publish_dir: docs/_build/
destination_dir: ${{ github.ref_name }} destination_dir: ${{ github.ref_name }}