From d08a0a54cac3b889d702351aa69525917a37513f Mon Sep 17 00:00:00 2001 From: Karn Kaul Date: Thu, 1 May 2025 07:50:31 -0700 Subject: [PATCH] Change CI trigger to PR (forks), add guide.yml --- .github/workflows/ci.yml | 4 ++-- .github/workflows/guide.yml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/guide.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c20e76f..4f3da2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ -name: ci-push +name: ci-pr on: - push: + pull_request: branches-ignore: - staging - production diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml new file mode 100644 index 0000000..b527594 --- /dev/null +++ b/.github/workflows/guide.yml @@ -0,0 +1,23 @@ +name: ci-guide +on: + pull_request: + branches-ignore: + - staging +jobs: + build-book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: init + run: | + url="https://github.com/rust-lang/mdBook/releases/download/v0.4.47/mdbook-v0.4.47-x86_64-unknown-linux-gnu.tar.gz" + mkdir mdbook + curl -sSL $url | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: build + run: | + cd guide + mdbook build || exit 1 + ls book