Skip to content
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

CI: Run publish-page workflow only on non-forks and docs changes #1097

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 4 additions & 2 deletions .github/workflows/publish-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

runs-on: ubuntu-22.04
steps:
- name: Print github context
run: echo "${{ toJson(github) }}" | jq .
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
Expand All @@ -40,8 +42,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: 'docs'
cache: "pnpm"
cache-dependency-path: "docs"

- name: Install and Build
working-directory: docs
Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ Markdown files with relative links.
Check out [Starlight’s docs](https://starlight.astro.build/) and the
[the Astro documentation](https://docs.astro.build)

test

[astro]: https://astro.build
[starlight]: https://starlight.astro.build
Loading