Skip to content

Commit

Permalink
fix: docs CI (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Apr 2, 2024
1 parent e02cd42 commit b8909e3
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 271 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,14 @@ jobs:
submodules: recursive

- uses: prefix-dev/setup-pixi@v0.5.1
with:
pixi-version: v0.13.0
cache: true

- name: Build docs for test
run: |
pixi run build-docs
docs-release:
# Don't run on forks
if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.tag, 'v')
if: github.repository == 'prefix-dev/rattler-build' && (startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.tag, 'v'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -67,9 +64,6 @@ jobs:
git checkout tags/${{ github.event.inputs.tag }}
- uses: prefix-dev/setup-pixi@v0.5.1
with:
pixi-version: v0.13.0
cache: true

- name: Configure Git user
run: |
Expand All @@ -90,7 +84,7 @@ jobs:
docs-dev:
# Don't run on forks
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' && !startsWith(github.event.inputs.tag, 'v')
if: github.repository == 'prefix-dev/rattler-build' && (github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' && !startsWith(github.event.inputs.tag, 'v'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -101,9 +95,6 @@ jobs:
submodules: recursive

- uses: prefix-dev/setup-pixi@v0.5.1
with:
pixi-version: v0.13.0
cache: true

- name: Configure Git user
run: |
Expand Down
Loading

0 comments on commit b8909e3

Please sign in to comment.