Skip to content

Commit 6706e9c

Browse files
Merge pull request #2 from no-witness-labs/docs-fix
Docs fix
2 parents a369d61 + e5cd9f1 commit 6706e9c

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

β€Ž.github/workflows/docs.ymlβ€Ž

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,20 @@ jobs:
2525
# Build job
2626
build:
2727
runs-on: ubuntu-latest
28-
outputs:
29-
should_build: ${{ steps.changes.outputs.should_build }}
3028
steps:
3129
- name: ⬇️ Checkout
3230
uses: actions/checkout@v4
33-
with:
34-
fetch-depth: 0 # Need full history for turbo-ignore
35-
36-
- name: πŸ” Check for documentation changes
37-
id: changes
38-
run: |
39-
npx turbo-ignore docs
40-
echo "should_build=$?" >> $GITHUB_OUTPUT
41-
continue-on-error: true
4231

43-
- name: πŸ“¦ Install pnpm
44-
if: steps.changes.outputs.should_build == '1'
32+
- name: Install pnpm
4533
uses: pnpm/action-setup@v4
4634

4735
- name: βŽ” Setup Node.js
48-
if: steps.changes.outputs.should_build == '1'
4936
uses: actions/setup-node@v4
5037
with:
5138
node-version: 20
5239
cache: 'pnpm'
5340

5441
- name: πŸ”§ Setup Pages
55-
if: steps.changes.outputs.should_build == '1'
5642
uses: actions/configure-pages@v4
5743
with:
5844
# Automatically inject basePath in your Next.js configuration file and disable
@@ -62,30 +48,24 @@ jobs:
6248
static_site_generator: next
6349

6450
- name: πŸ“¦ Install dependencies
65-
if: steps.changes.outputs.should_build == '1'
6651
run: pnpm install --frozen-lockfile
6752

6853
- name: πŸ— Build packages (required for docs)
69-
if: steps.changes.outputs.should_build == '1'
7054
run: pnpm turbo run build
7155

7256
- name: πŸ“„ Generate Evolution SDK docs
73-
if: steps.changes.outputs.should_build == '1'
7457
run: pnpm turbo run docgen
7558
working-directory: packages/evolution
7659

7760
- name: πŸ“š Copy Evolution docs to website
78-
if: steps.changes.outputs.should_build == '1'
7961
run: node scripts/copy-evolution-docs.mjs
8062
working-directory: docs
8163

8264
- name: πŸ— Build documentation with Next.js
83-
if: steps.changes.outputs.should_build == '1'
8465
run: pnpm turbo run build
8566
working-directory: docs
8667

8768
- name: πŸ“€ Upload artifact
88-
if: steps.changes.outputs.should_build == '1'
8969
uses: actions/upload-pages-artifact@v3
9070
with:
9171
path: ./docs/out
@@ -97,7 +77,6 @@ jobs:
9777
url: ${{ steps.deployment.outputs.page_url }}
9878
runs-on: ubuntu-latest
9979
needs: build
100-
if: needs.build.outputs.should_build == '1' || github.event_name == 'workflow_dispatch'
10180
steps:
10281
- name: πŸš€ Deploy to GitHub Pages
10382
id: deployment

0 commit comments

Comments
Β (0)