Skip to content

Commit

Permalink
Restrict the steps to polars as the release ain't possible from anywh…
Browse files Browse the repository at this point in the history
…ere else.
  • Loading branch information
svaningelgem committed Oct 2, 2023
1 parent 6c4ce1a commit 189a15a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clear-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v4

- name: Clear all caches
if: ${{ github.repository == 'pola-rs/polars' }}
run: gh cache delete --all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/docs-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
run: touch .nojekyll

- name: Deploy docs
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' and github.repository == 'pola-rs/polars' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: site
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: make html

- name: Deploy Python docs for latest development version
if: ${{ github.ref_name == 'main' }}
if: ${{ github.ref_name == 'main' and github.repository == 'pola-rs/polars' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: py-polars/docs/build/html
Expand All @@ -63,15 +63,15 @@ jobs:
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Deploy Python docs for latest release version - versioned
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' and github.repository == 'pola-rs/polars' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: py-polars/docs/build/html
target-folder: docs/python/version/${{ steps.version.outputs.version }}
single-commit: true

- name: Deploy Python docs for latest release version - stable
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' and github.repository == 'pola-rs/polars' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: py-polars/docs/build/html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
touch target/doc/.nojekyll
- name: Deploy Rust docs
if: ${{ github.ref_name == 'main' }}
if: ${{ github.ref_name == 'main' and github.repository == 'pola-rs/polars' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc
Expand Down

0 comments on commit 189a15a

Please sign in to comment.