-
Notifications
You must be signed in to change notification settings - Fork 251
ci: build wasm compiler during docs deployment to fix live editor #16406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,11 +11,25 @@ on: | |
| pull_request: | ||
| paths: | ||
| - 'docs/**' | ||
| - 'cmd/gh-aw-wasm/**' | ||
| - 'pkg/**' | ||
| - 'scripts/bundle-wasm-docs.sh' | ||
| - '.github/workflows/docs.yml' | ||
| - 'go.mod' | ||
| - 'go.sum' | ||
| - 'Makefile' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'docs/**' | ||
| - 'cmd/gh-aw-wasm/**' | ||
| - 'pkg/**' | ||
| - 'scripts/bundle-wasm-docs.sh' | ||
|
Comment on lines
14
to
28
|
||
| - '.github/workflows/docs.yml' | ||
| - 'go.mod' | ||
| - 'go.sum' | ||
| - 'Makefile' | ||
|
|
||
| # Allow this job to clone the repo and create a page deployment | ||
| permissions: | ||
|
|
@@ -43,6 +57,15 @@ jobs: | |
| cache: 'npm' | ||
| cache-dependency-path: 'docs/package-lock.json' | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: true | ||
|
|
||
| - name: Build WebAssembly compiler for docs | ||
| run: ./scripts/bundle-wasm-docs.sh | ||
|
|
||
| - name: Install dependencies | ||
| working-directory: ./docs | ||
| run: npm ci | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
pull_request.paths/push.pathsfilters don’t include this workflow file itself. As a result, a PR that only changes.github/workflows/docs.yml(like this one) won’t trigger the docs build, which makes it hard to validate the workflow changes. Consider adding.github/workflows/docs.ymlto both path lists.