diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index bd2ad4da31..07a023c0b9 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -165,19 +165,16 @@ jobs: project_id: ${{ secrets.GCS_PROJECT }} # Uploading docs to GCS, so they can be served on lightning.ai - - name: Upload docs/stable to GCS 🪣 + - name: Upload docs/${{ matrix.pkg-name }}/stable to GCS 🪣 if: startsWith(github.ref, 'refs/heads/release/') - # todo: consider nuke the bucket content before upload run: gsutil -m rsync -d -R docs/build/html/ gs://lightning-docs-${{ matrix.pkg-name }}/stable # Uploading docs to GCS, so they can be served on lightning.ai - - name: Upload docs/latest to GCS 🪣 + - name: Upload docs/${{ matrix.pkg-name }}/latest to GCS 🪣 if: github.ref == 'refs/heads/master' - # todo: consider nuke the bucket content before upload run: gsutil -m rsync -d -R docs/build/html/ gs://lightning-docs-${{ matrix.pkg-name }}/latest # Uploading docs to GCS, so they can be served on lightning.ai - - name: Upload docs/latest to GCS 🪣 + - name: Upload docs/${{ matrix.pkg-name }}/release to GCS 🪣 if: startsWith(github.ref, 'refs/tags/') - # todo: consider nuke the bucket content before upload run: gsutil -m rsync -d -R docs/build/html/ gs://lightning-docs-${{ matrix.pkg-name }}/${{ github.ref_name }}"