Skip to content

Commit 074bf52

Browse files
authored
workflow: separate docs release/test with naming cleanup (#972)
1 parent 5dcc92d commit 074bf52

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

.github/workflows/_doc_release.yml renamed to .github/workflows/_docs_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Docs
1+
name: Release Docs (INTERNAL)
22

33
on:
44
workflow_call:

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Tests
1+
name: Run Tests (INTERNAL)
22

33
on:
44
workflow_call:

.github/workflows/docs_release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release Docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
deploy:
11+
name: Release Docs
12+
uses: ./.github/workflows/_docs_release.yml
13+
secrets: inherit
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
name: docs
1+
name: Test Docs
22

33
on:
44
pull_request:
55
branches: [main]
66
paths:
77
- docs/**
8-
- ".github/workflows/docs.yml"
9-
workflow_dispatch:
10-
11-
permissions:
12-
contents: write
8+
- ".github/workflows/docs_test.yml"
139

1410
jobs:
1511
test-deploy:
16-
if: github.event_name == 'pull_request'
1712
runs-on: ubuntu-latest
1813
steps:
1914
- uses: actions/checkout@v4
@@ -24,10 +19,4 @@ jobs:
2419
- name: Install dependencies
2520
run: yarn --cwd docs install --frozen-lockfile
2621
- name: Test build website
27-
run: yarn --cwd docs build
28-
29-
deploy:
30-
name: Release Docs
31-
if: ${{ github.event_name == 'workflow_dispatch' }}
32-
uses: ./.github/workflows/_doc_release.yml
33-
secrets: inherit
22+
run: yarn --cwd docs build

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# maturin generate-ci github
55
#
6-
name: format check
6+
name: Format Check
77

88
on:
99
pull_request:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# - When triggered on tags push, it will build and publishes a new version including docs.
44
# - When triggered manually, it's a dry-run: only build, without publishing anything.
5-
name: release
5+
name: Release CocoIndex
66

77
on:
88
push:
@@ -161,5 +161,5 @@ jobs:
161161
name: Release Docs
162162
needs: [release]
163163
if: ${{ startsWith(github.ref, 'refs/tags/') }}
164-
uses: ./.github/workflows/_doc_release.yml
164+
uses: ./.github/workflows/_docs_release.yml
165165
secrets: inherit

0 commit comments

Comments
 (0)