Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Docs
name: Release Docs (INTERNAL)

on:
workflow_call:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: Run Tests (INTERNAL)

on:
workflow_call:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/docs_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release Docs

on:
workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
name: Release Docs
uses: ./.github/workflows/_docs_release.yml
secrets: inherit
17 changes: 3 additions & 14 deletions .github/workflows/docs.yml → .github/workflows/docs_test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: docs
name: Test Docs

on:
pull_request:
branches: [main]
paths:
- docs/**
- ".github/workflows/docs.yml"
workflow_dispatch:

permissions:
contents: write
- ".github/workflows/docs_test.yml"

jobs:
test-deploy:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,10 +19,4 @@ jobs:
- name: Install dependencies
run: yarn --cwd docs install --frozen-lockfile
- name: Test build website
run: yarn --cwd docs build

deploy:
name: Release Docs
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/_doc_release.yml
secrets: inherit
run: yarn --cwd docs build
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# maturin generate-ci github
#
name: format check
name: Format Check

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# - When triggered on tags push, it will build and publishes a new version including docs.
# - When triggered manually, it's a dry-run: only build, without publishing anything.
name: release
name: Release CocoIndex

on:
push:
Expand Down Expand Up @@ -161,5 +161,5 @@ jobs:
name: Release Docs
needs: [release]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: ./.github/workflows/_doc_release.yml
uses: ./.github/workflows/_docs_release.yml
secrets: inherit
Loading